15.10.2011, 16:59
Quote:
Where did you forward the timer, and can you show us how? Also show us the line with SetTimer
|
pawn Код:
new timer;
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
// new currentveh;
// currentveh = GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER) {
DestroyVehicle(vehicleid); //thats supposed to be in the timer. no slapping out
}
// TextDrawShowForPlayer(playerid,Cardestroyed);
// SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
SetTimerEx("cardestroyedhide", 5000, 0, "i", vehicleid);
}
pawn Код:
SetTimerEx("cardestroyedhide", 5000, 0, "i", vehicleid);