crashdetect Array index out of bounds
#1

Does anyone know how to fix this?
Код:
[16:31:36] [debug] Run time error 4: "Array index out of bounds"
[16:31:36] [debug]  Accessing element at index 13 past array upper bound 12
[16:31:36] [debug] AMX backtrace:
[16:31:36] [debug] #0 0014a284 in public Streamer_OnPlayerDisconnect (13, 1) from SATDM.amx
[16:31:36] [debug] #1 native CallLocalFunction () from samp03svr
[16:31:36] [debug] #2 00006af8 in public OnPlayerDisconnect (13, 1) from SATDM.amx

[16:31:45] [debug] Run time error 4: "Array index out of bounds"
[16:31:45] [debug]  Accessing element at index 13 past array upper bound 12
[16:31:45] [debug] AMX backtrace:
[16:31:45] [debug] #0 0014a284 in public Streamer_OnPlayerDisconnect (13, 2) from SATDM.amx
[16:31:45] [debug] #1 native CallLocalFunction () from samp03svr
[16:31:45] [debug] #2 00006af8 in public OnPlayerDisconnect (13, 2) from SATDM.amx
[16:31:45] [debug] #3 native Kick () from samp03svr
[16:31:45] [debug] #4 00126bd0 in public KickRaisonban (13) from SATDM.amx

[16:37:40] [debug] Run time error 4: "Array index out of bounds"
[16:37:40] [debug]  Accessing element at index 255 past array upper bound 254
[16:37:40] [debug] AMX backtrace:
[16:37:40] [debug] #0 00003ac0 in ?? (255) from SATDM.amx
[16:37:40] [debug] #1 00147d1c in public OnPlayerDeath (10, 5, 32) from SATDM.amx

[16:38:23] [debug] Run time error 4: "Array index out of bounds"
[16:38:23] [debug]  Accessing element at index 65535 past array upper bound 499
[16:38:23] [debug] AMX backtrace:
[16:38:23] [debug] #0 002087a4 in public OnDialogResponse (10, 157, 0, -1, 8920364) from SATDM.amx

[16:39:27] [debug] Run time error 4: "Array index out of bounds"
[16:39:27] [debug]  Accessing element at index 65535 past array upper bound 499
[16:39:27] [debug] AMX backtrace:
[16:39:27] [debug] #0 0045d4d8 in public DuelCheck (5) from SATDM.amx

[18:17:12] [debug] Run time error 4: "Array index out of bounds"
[18:17:12] [debug]  Accessing element at index 64 past array upper bound 63
[18:17:12] [debug] AMX backtrace:
[18:17:12] [debug] #0 00151da8 in public LoadRace (11145924) from SATDM.amx
[18:17:12] [debug] #1 00152634 in public RaceRotation () from SATDM.amx
Reply
#2

Compile with -d3 and paste code.
No code, no help.
Reply
#3

You are calling a variable out of its bounds.
Eg:
PHP код:
new x[4];
printf("%d"x[5]); 
Compile with -d3 your script (pawn folder, PAWN.CFG, open it and write "-d3" into it).
After that check the console output, there should be the line where this exception is called.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)