let me take a shot
stock SetVehicleEngine(vehicleid, on=1)//0 is off _ 1 is on
{
switch()
{
case 0:
KillVehicleEngine(vehicleid);
case 1:
StartVehicleEngine(vehicleid);
}
}
stock StartVehicleEngine(vehicleid)
{
RemovePlayerFromVehicle(playerid);
PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid));
}
forgot playerid you add it
No no no you are wrong
First create a new var:
[pawn]pveh = GetPlayerVehicleID(playerid);[/pawn]
only after that u can do:
[pawn]RemovePlayerFromVehicle(playerid);
PutPlayerInVehicle(playerid, pveh);[/pawn]
Understand me?