GetClosestCar
#4

pawn Код:
new PCar = GetClosestVehicle(playerid);
if(PCar == 0)
As you can probably guess, the GetClosetVehicle stock will return the vehicle id, and you check if the vehicle id is 0...?

If you use now TheStreetsRP's stock, I think you should change the if statement to:
pawn Код:
if(PCar != INVALID_VEHICLE_ID)
Reply


Messages In This Thread
GetClosestCar - by Stefand - 09.05.2013, 18:33
Re: GetClosestCar - by TheStreetsRP - 09.05.2013, 18:48
Re: GetClosestCar - by Stefand - 09.05.2013, 20:11
Re: GetClosestCar - by zxc1 - 09.05.2013, 20:16
Re: GetClosestCar - by Stefand - 09.05.2013, 20:29
Re: GetClosestCar - by Scenario - 09.05.2013, 20:38
Re: GetClosestCar - by cessil - 09.05.2013, 21:34
Re: GetClosestCar - by Stefand - 09.05.2013, 21:40

Forum Jump:


Users browsing this thread: 2 Guest(s)