19.06.2009, 18:24
Hey,
I have these lines in my command:
But when I'm in vehicle id-597 it shows "You are not in SF Police Car!".. Why? What's wrong with the code?
Or do I need to use
I have these lines in my command:
pawn Код:
if (IsPlayerInVehicle(playerid,597))
{
TogglePlayerControllable(id,0);
new vehid = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(id,vehid,seatid);
}
else ErrorMsg(playerid,"You are not in SF Police Car!");
Or do I need to use
pawn Код:
new vehid = GetPlayerVehicleId(playerid);
if(vehid == 597)
{...