Freeze timer
#2

You are using SetTimer for a timer that has a parameter, therefore you MUST use SetTimerEx. Use this code:

pawn Код:
forward unfreeze(playerid);
public unfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
}



CMD:enter(playerid, params[])
{
    TogglePlayerControllable(playerid, 0);
    SetPlayerPos(playerid,491.1090,1398.9766,1080.2578);
    SetPlayerInterior(playerid, 2);
    SetTimerEx("unfreeze", 1000, false, "i", playerid);
    SetPlayerFacingAngle(playerid, 0);
    return 1;
}
This should work
Reply


Messages In This Thread
Freeze timer - by Shredmaster - 15.08.2012, 19:56
Re: Freeze timer - by Kindred - 15.08.2012, 20:03
Re: Freeze timer - by Shredmaster - 15.08.2012, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)