*** This topic title is not descriptive. - 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: *** This topic title is not descriptive. (
/showthread.php?tid=390504)
*** This topic title is not descriptive. -
Camorra - 06.11.2012
Fixed.
Re: Whats worng here ? -
Basssiiie - 06.11.2012
"Array index out of bounds" means that your script is exceeding the size of the array somewhere. For example, you've got this:
And you do this
Код:
new var = array[15];
Which gives the error above, because your array has only 10 slots.
In your case you have an array with 150 slots (0 to 149) and you're trying to acces slot 150.
Re: Whats worng here ? -
Camorra - 06.11.2012
ye but where i'll find that one now
Re: Whats worng here ? -
Camorra - 06.11.2012
Код:
for (new i = 0; i <= MAX_PLAYERS; i++)
Replaced with
Код:
for(new i=0;i<MAX_PLAYERS;i++)
Re: Whats worng here ? -
Basssiiie - 06.11.2012
That might be the fix. Have you tried it?
Re: Whats worng here ? -
Camorra - 06.11.2012
Quote:
Originally Posted by Basssiiie
That might be the fix. Have you tried it?
|
Yes, After change it server.log wont spam again.