SA-MP Forums Archive
Run time error 4: "Array index out of bounds" - 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: Run time error 4: "Array index out of bounds" (/showthread.php?tid=553119)



Run time error 4: "Array index out of bounds" - Freedom. - 28.12.2014

solved.


Re: Run time error 4: "Array index out of bounds" - gdkparadox - 28.12.2014

Try:

Код:
task bolgeCapturing[MAX_PLAYERS]() {



Re: Run time error 4: "Array index out of bounds" - CoaPsyFactor - 28.12.2014

That won't help, as 1000 is max_players define in 1000p version of server.
Please give us definitions of all array variables you use in this code Kullanicilar,Areas,PlayerEnteredGZ etc


Re: Run time error 4: "Array index out of bounds" - Pottus - 28.12.2014

Quote:
Originally Posted by gdkparadox
Посмотреть сообщение
Try:

Код:
task bolgeCapturing[MAX_PLAYERS]() {
Get real gdkparadox, what he really needs to do is start putting in print() to and find the exact line causing issues.


Re: Run time error 4: "Array index out of bounds" - Freedom. - 28.12.2014

solved/


Re: Run time error 4: "Array index out of bounds" - CoaPsyFactor - 28.12.2014

okay I know they are enums, but what are max sizes of those arrays?


Re: Run time error 4: "Array index out of bounds" - Freedom. - 28.12.2014

special


Re: Run time error 4: "Array index out of bounds" - CoaPsyFactor - 28.12.2014

in that case use what gdkparadox told you, because you loop 1000 times, and try to access to 129 of 128 max


Re: Run time error 4: "Array index out of bounds" - Freedom. - 28.12.2014

solved/


Re: Run time error 4: "Array index out of bounds" - Freedom. - 30.12.2014

----