11.02.2013, 11:48
You define
new bool:unwanted[CAR_AMOUNT];
and then you use
for(new car = 1; car <= 2000; car++)
Most likely CAR_AMOUNT is smaller or equal to 2000 and you try to read unwanted[CAR_AMOUNT or higher]
try
for(new car = 1; car < CAR_AMOUNT; car++)
notice it's < not <= because an array of the size 2000 starts with 0 and goes to 1999 only
new bool:unwanted[CAR_AMOUNT];
and then you use
for(new car = 1; car <= 2000; car++)
Most likely CAR_AMOUNT is smaller or equal to 2000 and you try to read unwanted[CAR_AMOUNT or higher]
try
for(new car = 1; car < CAR_AMOUNT; car++)
notice it's < not <= because an array of the size 2000 starts with 0 and goes to 1999 only

