Array index out of bounds problem
#3

The problem relies here:

pawn Код:
while(rows > i)
    {
        APlayerData[i][BanVariable] = true;// You had only this, no loading any other

        printf("Ban %d Loaded", i);
        i++;
    }

//while(i < rows) would make more sense though, at least for me. It would be easier to understand.
Increment the size on the array for APlayerData
The max size for [i] has to be incremented where you defined the array.
Reply


Messages In This Thread
Array index out of bounds problem - by thimo - 18.01.2014, 20:18
Re: Array index out of bounds problem - by Patrick - 18.01.2014, 20:33
Re: Array index out of bounds problem - by InglewoodRoleplay - 18.01.2014, 20:35
Re: Array index out of bounds problem - by thimo - 19.01.2014, 09:19
Re: Array index out of bounds problem - by Patrick - 19.01.2014, 09:32
Re: Array index out of bounds problem - by thimo - 19.01.2014, 09:38
Re: Array index out of bounds problem - by Patrick - 19.01.2014, 09:40
Re: Array index out of bounds problem - by thimo - 19.01.2014, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)