Destroy Vehicle -lil problem
#1

hi
i have a car spawner in my server.
its basic

top of script
pawn Код:
new CarVar[MAX_PLAYERS];
the cmd
pawn Код:
CMD:v(playerid,params[])
{
//code to spawn vehicle by name, blabla

destroyvehicle(carvar[playerid]);
carvar[playerid] = createvehicle(...);
return 1;
}
it works but sometimes it delete the wrong car! (and the normal...so it delete 2 xD)
oh...
i have a private car system(car ownership)
the var is
pawn Код:
new PrivateCar[MAX_PLAYERS];
and when a player spawn a car with /V , SOMETIMES it delete a player private vehicle ...
i have no idea why... please help me xD
thanks
Reply


Messages In This Thread
Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 19:57
Re: Destroy Vehicle -lil problem - by Jefff - 14.02.2012, 20:00
Re: Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 20:08
Re: Destroy Vehicle -lil problem - by Toreno - 14.02.2012, 20:27
Re: Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 20:36
Re: Destroy Vehicle -lil problem - by Toreno - 14.02.2012, 20:50
Re: Destroy Vehicle -lil problem - by FlawL3x - 15.02.2012, 19:40
Re: Destroy Vehicle -lil problem - by FlawL3x - 16.02.2012, 16:30

Forum Jump:


Users browsing this thread: 2 Guest(s)