SA-MP Forums Archive
[debug] 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: [debug] help (/showthread.php?tid=661688)



[debug] help - HypCosmin - 11.12.2018

Hello!

I added the crashdetect plugin, and then I get this problem in the console, which could be the problem?

Код:
[11:20:10] [debug] Run time error 4: "Array index out of bounds"
[11:20:10] [debug]  Accessing element at index 65535 past array upper bound 1999
[11:20:10] [debug] AMX backtrace:
[11:20:10] [debug] #0 002af160 in ?? () from safeG.amx
[11:20:10] [debug] #1 00147f14 in public Streamer_OnGameModeInit () from safeG.amx
[11:20:10] [debug] #2 native CallLocalFunction () [004743b0] from samp-server.exe
[11:20:10] [debug] #3 00000ed0 in public OnGameModeInit () from safeG.amx



Re: [debug] help - Calisthenics - 11.12.2018

A function called in OnGameModeInit causes run time error 4. The value of vehicleid passed as index in a vehicle-array is 65535 which is INVALID_VEHICLE_ID. Either limit was reached (highly unlikely) or invalid modelid.

You need to compile your script with -d3 flag: https://github.com/Zeex/samp-plugin-...ith-debug-info
Restart server and when it appears again, post the new logs.


Re: [debug] help - HypCosmin - 11.12.2018

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
A function called in OnGameModeInit causes run time error 4. The value of vehicleid passed as index in a vehicle-array is 65535 which is INVALID_VEHICLE_ID. Either limit was reached (highly unlikely) or invalid modelid.

You need to compile your script with -d3 flag: https://github.com/Zeex/samp-plugin-...ith-debug-info
Restart server and when it appears again, post the new logs.
Thank you, the problem solved!