[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
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. |