Array index out of bounds
#2

Array cell numbers start from 0 to the max number -1.

So, the maximum number will be 4 if you define 5 cells, but you'll have 5 cells and the first cell will start at 0.

I assume this will work for your second error: (I don't know the order of the values you're directly wanting to get)
pawn Код:
PInfo[playerid][VIP] = data2[4];
As for the rest of your code, see what I said above and take that in to consideration when updating the rest of the values/variables.
Reply


Messages In This Thread
Array index out of bounds - by Snipa - 05.04.2011, 00:59
Re: Array index out of bounds - by Calgon - 05.04.2011, 03:41

Forum Jump:


Users browsing this thread: 1 Guest(s)