Run time error 4: "Array index out of bounds"
#5

You need to debug your code, from a fast look I did not see anything strange.

By the way, those arrays you have created are you really sure that they have the size of "MAX_PLAYERS"? Because if you did for example:

pawn Код:
// MAX_PLAYERS = 100
new Something[ MAX_PLAYERS ][ Something_enum ];
new Something2[ 80 ][ Something2_enum ];

// Somewhere:
for(new i = 0; i < MAX_PLAYERS; i++ )
{
    Something[ i ][ blabla ] = 0;
    Something2[ i ][ blablabla ] = 1; // When "i" will be 80: "Array index out of bounds"
}
Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by toofast - 09.07.2013, 15:08
Re: Run time error 4: "Array index out of bounds" - by Konstantinos - 09.07.2013, 15:09
Re: Run time error 4: "Array index out of bounds" - by toofast - 09.07.2013, 15:12
Re: Run time error 4: "Array index out of bounds" - by ReVo_ - 09.07.2013, 15:19
Re: Run time error 4: "Array index out of bounds" - by Konstantinos - 09.07.2013, 15:27
Re: Run time error 4: "Array index out of bounds" - by toofast - 09.07.2013, 15:50
Re: Run time error 4: "Array index out of bounds" - by Konstantinos - 09.07.2013, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)