09.05.2018, 17:57
Quote:
Try using debug level 3, so it shows you the exact lines that produce the crash. You must do this:
Create a file called pawn.cfg in your pawno folder, inside this file write: PHP код:
Don't forget to save the file and recompile your script. |
PHP код:
[00:53:40] [debug] Run time error 4: "Array index out of bounds"
[00:53:40] [debug] Attempted to read/write array element at negative index -400
[00:53:40] [debug] AMX backtrace:
[00:53:40] [debug] #0 001bcfec in public avt_OnPlayerStateChange (playerid=0, newstate=8, oldstate=0) at C:\Users\PC-20\Desktop\Roleplay\gamemodes\Roleplay.pwn:20641
[00:53:40] [debug] #1 0001b148 in public OnPlayerStateChange (playerid=0, newstate=8, oldstate=0) at C:\Users\PC-20\Desktop\Roleplay\pawno\include\anti-vehicle_teleporter.inc:155
[00:53:40] [debug] Run time error 4: "Array index out of bounds"
[00:53:40] [debug] Attempted to read/write array element at negative index -400
[00:53:40] [debug] AMX backtrace:
[00:53:40] [debug] #0 001bcfec in public avt_OnPlayerStateChange (playerid=0, newstate=1, oldstate=8) at C:\Users\PC-20\Desktop\Roleplay\gamemodes\Roleplay.pwn:20641
[00:53:40] [debug] #1 0001b148 in public OnPlayerStateChange (playerid=0, newstate=1, oldstate=8) at C:\Users\PC-20\Desktop\Roleplay\pawno\include\anti-vehicle_teleporter.inc:155