[Help] Am i carrying the ID propaly?
#9

GetPlayerVehicleID(carcreated);

Your carcreated variable is not a player ID, which GetPlayerVehicleID function needs. It is the vehicle ID, because CreateVehicle function returns the vehicle ID. So, basically this means that now the GetPlayerVehicleID function is not working correctly.

Just like MadeMan said, use this one:
pawn Код:
playercarid[playerid] = CreateVehicle(CarId,Carx,Cary,Carz,Carangle,randcolor,randcolor,10000);
And to destroy/lock the vehicle:
pawn Код:
DestroyVehicle(playercarid[playerid])
Reply


Messages In This Thread
[Help] Am i carrying the ID propaly? - by Mowgli - 07.08.2009, 19:25
Re: [Help] Am i carrying the ID propaly? - by MadeMan - 07.08.2009, 19:30
Re: [Help] Am i carrying the ID propaly? - by Antonio [G-RP] - 07.08.2009, 19:31
Re: [Help] Am i carrying the ID propaly? - by Mowgli - 07.08.2009, 19:32
Re: [Help] Am i carrying the ID propaly? - by MadeMan - 07.08.2009, 19:36
Re: [Help] Am i carrying the ID propaly? - by Mowgli - 07.08.2009, 19:38
Re: [Help] Am i carrying the ID propaly? - by MadeMan - 07.08.2009, 20:00
Re: [Help] Am i carrying the ID propaly? - by Mowgli - 07.08.2009, 20:12
Re: [Help] Am i carrying the ID propaly? - by Finn - 07.08.2009, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)