Timer Not Working
#1

It freezes you but once you get tp'd it doesn't unfreeze you.

pawn Код:
TogglePlayerControllable(playerid,0);
SetTimer("bankunfreeze", 5000, false); // 5 Seconds

public bankunfreeze(playerid)
{
    TogglePlayerControllable(playerid,1);
}
It is also forwarded
pawn Код:
forward bankunfreeze(playerid);
Reply
#2

pawn Код:
forward bankunfreeze(playerid);
public bankunfreeze(playerid)
{
   KillTimer(bankunfreeze[playerid]);
   TogglePlayerControllable(playerid, 1);
}
Reply
#3

Oh thanks totally forgot to kill it *facepalm*

+rep!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)