SA-MP Forums Archive
Crashdetect - FAST HELP - 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: Crashdetect - FAST HELP (/showthread.php?tid=651871)



Crashdetect - FAST HELP - IdonTmiss - 29.03.2018

Код:
[23:23:02] [debug] Run time error 4: "Array index out of bounds"
[23:23:02] [debug]  Accessing element at index 123 past array upper bound 122
[23:23:02] [debug] AMX backtrace:
[23:23:02] [debug] #0 00092dec in public FC_OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\gamemodes\GM.pwn:6674
[23:23:02] [debug] #1 native CallLocalFunction () from samp-server.exe
[23:23:02] [debug] #2 00047b60 in public SSCANF_OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\pawno\include\fuckcleo.inc:238
[23:23:02] [debug] #3 0003e754 in ?? () at C:\Users\PCName\Desktop\Gamemode\pawno\include\sscanf2.inc:205
[23:23:02] [debug] #4 0002f3b4 in public Itter_OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\pawno\include\YSI\y_hooks/impl.inc:484
[23:23:02] [debug] #5 native CallLocalFunction () from samp-server.exe
[23:23:02] [debug] #6 0002796c in public ScriptInit_OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\pawno\include\YSI\y_iterate.inc:791
[23:23:02] [debug] #7 0002658c in public WC_OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\pawno\include\YSI\internal\..\y_scriptinit.inc:171
[23:23:02] [debug] #8 000073dc in public OnGameModeInit () at C:\Users\PCName\Desktop\Gamemode\pawno\include\weapon-config.inc:2038
Whats wrong??


Re: Crashdetect - FAST HELP - IdonTmiss - 29.03.2018

Anybody to help i can't start my server i mean i can but nothing loads


Re: Crashdetect - FAST HELP - AdamsLT - 29.03.2018

Well it appears that one of your arrays has a size of 122 but you try to access the element at index 123.

Line 6674 in your GM.pwn seems to be the problem, I think.
Try posting the code around that line and mark which line is 6674.


Re: Crashdetect - FAST HELP - IdonTmiss - 29.03.2018

Quote:
Originally Posted by AdamsLT
Посмотреть сообщение
Well it appears that one of your arrays has a size of 122 but you try to access the element at index 123.

Line 6674 in your GM.pwn seems to be the problem, I think.
Try posting the code around that line and mark which line is 6674.
Thanks im stupid really omg f me thanks man <3