19.02.2015, 07:54
pawn Код:
for(new i; i = 1; i < 3; i++)
{
new id = CreateVehicle(..);
printf("ingame id %i loop id %i",id,i);
if(id != i)
{
printf("loop id %i does not match game id %i",i,id);
}
}
Car 1 creates (successfully no issues)
Car 2 not found. (ignores)
Car 3 creates but SA-MP wisely it will find a non-existing vehicle ID and overwrites it, get me? So the ingame id will be 2, therefore variables will be loaded in 3 and id 2 variables will be null even though the car id is 2.
So it will print:
pawn Код:
ingame id 1 loop id 1
ingame id 0 loop id 2
ingame id 2 loop id 3.

