Dealership car bug ... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dealership car bug ... (
/showthread.php?tid=581074)
Dealership car bug ... -
Metharon - 10.07.2015
So i'm having this bug..
When a player enter on dealership an DsVehicle[playerid] = CreateVehicle is created...
The problem is that when the player done , and he buy the car... the next player when enter on ds and choose to not buy , is gonna destroy the car personal of player frist...
How can i make to don't get the wrong ids ?..
Re: Dealership car bug ... -
FplayerGR - 10.07.2015
you can get id of this car:
Код:
new car = CreateVehicle..
PutPlayerInVehicle...
DsVehicle[playerid] = GetPlayerVehicleID(playerid);
and for destroy vehicle:
Код:
DestoryVehicle(DsVehicle[playerid]);