[debug] Run time error 4: "Array index out of bounds"
#2

Replace:
pawn Code:
for(new x = 1; x <= MAX_VEHICLES; ++x)
to:
pawn Code:
for(new x = 1; x < MAX_VEHICLES; ++x)
The size of FishingVeh is MAX_VEHICLES which is 2000 so the valid indexes are 0 to 1999.
Reply


Messages In This Thread
[debug] Run time error 4: "Array index out of bounds" - by skiplovebra - 13.04.2016, 15:17
Re: [debug] Run time error 4: "Array index out of bounds" - by Konstantinos - 13.04.2016, 15:27
Re: [debug] Run time error 4: "Array index out of bounds" - by skiplovebra - 13.04.2016, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)