SA-MP Forums Archive
Please Help : Run Time Error 4 - 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: Please Help : Run Time Error 4 (/showthread.php?tid=561481)



Please Help : Run Time Error 4 - rudanpidan5 - 03.02.2015

Hello Sa-mp Comunity !


I need your help... i don`t know how to fix this problem and i would appreciate if you can help me !

When i try to use commands on players i get: Error: Player is not connecter and i got this message in console and i can`t use any command to that player.

Код:
[01:21:54] [debug] Run time error 4: "Array index out of bounds"
[01:21:54] [debug]  Accessing element at index 65535 past array upper bound 59
[01:21:54] [debug] AMX backtrace:
[01:21:54] [debug] #0 000429e8 in public cmd_get () from LuxAdmin.amx
[01:21:54] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[01:21:54] [debug] #2 00007a28 in public OnPlayerCommandText () from LuxAdmin.amx
Btw, i`m Newbie not a Proffesional Scripter.

Thank you for your Time !

Best Wishes !


Re: Please Help : Run Time Error 4 - rudanpidan5 - 06.02.2015

Somebody...? Please


Re: Please Help : Run Time Error 4 - rudanpidan5 - 07.02.2015

Ok then... thank you -.- You can delete this post ! Nobody wants to help me


Re: Please Help : Run Time Error 4 - CalvinC - 07.02.2015

Quote:

Very simple, you're trying to access out-of-bound data in an array, in other words, a cell inside of an array that doesn't exist.

Solution: If you're using the crashdetect plugin, it'll tell you which callback the error is in. Simply debug your code until you find the culprit, then remove it.

https://sampforum.blast.hk/showthread.php?tid=482429


Re: Please Help : Run Time Error 4 - rudanpidan5 - 09.02.2015

Thank you bro ! I`ll try this.