Crash extraсo
#1

Buenas,
cuando un usuario hace conexiуn con el servidor (rara vez) aparece el siguiente crash:

[01:53:52] [debug] Run time error 4: "Array index out of bounds"
[01:53:52] [debug] AMX backtrace:
[01:53:52] [debug] #0 00000798 in ?? (-1) from LEP.amx
[01:53:52] [debug] #1 000018ac in ?? (-1, 14047664, 6378180, 12 from LEP.amx
[01:53:52] [debug] #2 002e0bc8 in public SSCANF_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #3 0004bd0c in public RNPC_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #4 native CallLocalFunction () from samp03svr
[01:53:52] [debug] #5 0004ace8 in public MP_OPC (40) from LEP.amx
[01:53:52] [debug] #6 native CallLocalFunction () from samp03svr
[01:53:52] [debug] #7 0003fcc4 in public AB_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #8 0003ae9c in public Cam_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #9 00038614 in public zHook_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #10 00038430 in public _y_utils_OnPlayerConnect (40) from LEP.amx
[01:53:52] [debug] #11 0000bb70 in ?? (40, 1, 0, 0, 4, 40, 0, 0, 0, 0, ... <1073741813 arguments>) from LEP.amx
[01:53:52] [debug] #12 0000d1ac in public OnPlayerConnect (40) from LEP.amx

No tengo ni la menor idea de quй se trata.

Los includes que utilizo son:

#include <a_samp>
#include <crashdetect>
#include <easy-mysql>
#include <YSI\YSI_Data\y_foreach>
#include <YSI\YSI_Storage\y_ini>
#include <YSI\YSI_Coding\y_timers>
#include <AnimFix>
#include <camara>
#include <hTP>
#include <mSelection>
#include <progress2>
#include <rnpc>
#include <streamer>
#include <sscanf2>
#include <zcmd>
Reply
#2

Array index out of bounds

O sea que intentas acceder al нndice de un array que estб fuera de sus lнmites (fuera de su tamaсo total)

Hay que leer (y traducir si es necesario) antes de preguntar...
Reply
#3

Quote:
Originally Posted by EnzoMetlc
Посмотреть сообщение
Array index out of bounds

O sea que intentas acceder al нndice de un array que estб fuera de sus lнmites (fuera de su tamaсo total)

Hay que leer (y traducir si es necesario) antes de preguntar...
Sн, pero exactamente CUAL ARRAY, por que como dije, el crash sуlo aparece cuando el usuario hace conexiуn/desconecta del servidor. Y no todo el tiempo, es a veces.


EDIT: Ya encontrй el problema.
Reply
#4

La verdad es que no sй ya que no se puede saber el nombre de un array con un plugin.

Haz un debug.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)