SA-MP Forums Archive
Crashes, AMX backtrace. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Crashes, AMX backtrace. (/showthread.php?tid=590335)



Crashes, AMX backtrace. - Kemula - 28.09.2015

Hi guys, I need help with this backtrace. Can't find the problem.

Код:
[10:41:12] [connection] incoming connection: 81.84.178.184:53410 id: 4
[10:41:13] [join] vitor_rafael has joined the server (4:81.84.178.184)
[10:41:13] [debug] Run time error 4: "Array index out of bounds"
[10:41:13] [debug]  Accessing element at index 682 past array upper bound 681
[10:41:13] [debug] AMX backtrace:
[10:41:13] [debug] #0 0000ad4c in ?? (1141456896, 1106771968, 1113456640, 1082528891, 4118783, 1120403456) from core.amx
[10:41:13] [debug] #1 0018bc70 in public OnPlPa_OnPlayerConnect (4) from core.amx
[10:41:13] [debug] #2 native CallLocalFunction () from samp03svr
[10:41:13] [debug] #3 00017e54 in public MP_OPC (4) from core.amx
[10:41:13] [debug] #4 native CallLocalFunction () from samp03svr
[10:41:13] [debug] #5 0001562c in public SSCANF_OnPlayerConnect (4) from core.amx
[10:41:13] [debug] #6 native CallLocalFunction () from samp03svr
[10:41:13] [debug] #7 0000ce70 in ?? (4) from core.amx
[10:41:13] [debug] #8 00005d54 in public Itter_OnPlayerConnect (4) from core.amx
[10:41:13] [debug] #9 00001360 in public OnPlayerConnect (4) from core.amx
[10:43:04] [debug] Run time error 4: "Array index out of bounds"
[10:43:04] [debug]  Accessing element at index 65535 past array upper bound 1999
[10:43:04] [debug] AMX backtrace:
[10:43:04] [debug] #0 001a07d0 in public OnPlPa_OnPlayerDisconnect (4, 1) from core.amx
[10:43:04] [debug] #1 native CallLocalFunction () from samp03svr
[10:43:04] [debug] #2 00017f20 in public SSCANF_OnPlayerDisconnect (4, 1) from core.amx
[10:43:04] [debug] #3 native CallLocalFunction () from samp03svr
[10:43:04] [debug] #4 0000cef4 in ?? (4, 1) from core.amx
[10:43:04] [debug] #5 00005eb4 in public Itter_OnPlayerDisconnect (4, 1) from core.amx
[10:43:04] [debug] #6 00001b24 in public OnPlayerDisconnect (4, 1) from core.amx
[10:43:04] [part] vitor_rafael has left the server (4:1)
Thank you.


Re: Crashes, AMX backtrace. - jihadmeneer - 28.09.2015

It's passing a value of 682 while 681 is the maximum, look for 681 in your script as it's not predefined(MAX_VEHICLEs is around 1000), and increase it!