Array index out of bounds
#2

Probably you have somewhere in your code something like
pawn Код:
new SpeedAndModel[2000]
//and/or
new VehRadarID[2000]
//and/or
new CheckingSpeed[2000]
You have 2 options:
pawn Код:
#NAME#[2000]
//changes into
#NAME#[2001]
or
pawn Код:
for (new i = 1; i <= MAX_VEHICLES; i++)
//changes into
for (new i = 0; i != MAX_VEHICLES; i++)
If you choose second option, you save one cell in each array, but you have to check your whole code and change all instances of this loop
Reply


Messages In This Thread
Array index out of bounds - by thimo - 11.08.2013, 11:23
Re: Array index out of bounds - by Misiur - 11.08.2013, 11:29

Forum Jump:


Users browsing this thread: 2 Guest(s)