SA-MP Forums Archive
Player data problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Player data problem (/showthread.php?tid=653758)



Player data problem - Yuri8 - 12.05.2018

I use crashdetect to detect my problems, but I get this error:
PHP Code:
[debugRun time error 4"Array index out of bounds"
[debug]  Attempted to read/write array element at index 2 in array of size 2
[debugAMX backtrace:
[
debug#0 00062e8c in public OnLogin (0) from gm.amx 
which is strange because the mysql query is correct. Please help!

EDIT: I changed mysql to R41-4.


Re: Player data problem - GTLS - 16.05.2018

As it says, your declared array has size of 2 and you are trying to insert values at index [2] means 3rd value as index in array starts from 0. Increase the size of the array to solve the problem.