Question regarding vehicle system
#7

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
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);
}
}
Now think of it like that.

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.
Thats what ginger gave you!
Reply


Messages In This Thread
Question regarding vehicle system - by DaniceMcHarley - 18.02.2015, 14:30
Re: Question regarding vehicle system - by Misiur - 18.02.2015, 14:48
Re: Question regarding vehicle system - by Gammix - 18.02.2015, 15:02
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 07:39
Re: Question regarding vehicle system - by Gammix - 19.02.2015, 07:50
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 07:54
Re: Question regarding vehicle system - by $$inSane - 19.02.2015, 07:59
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 14:22
Re: Question regarding vehicle system - by Knappen - 19.02.2015, 15:25
Re: Question regarding vehicle system - by DaniceMcHarley - 19.02.2015, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)