Timer problem
#1

Hello guys, i want to freeze player because i have a streamer so it needs a while to load so what i do is:

Код:
                
TogglePlayerControllable(playerid, 0);
SetTimer("unfreeze", 2000, 0);
And then i have the unfreeze public:

Код:
forward unfreeze(playerid);
public unfreeze(playerid)
{
	TogglePlayerControllable(playerid, 1);
}
But idk if the public is not called or its just some other problem, can you help me guys? Thanks
Reply
#2

SetTimerEx("unfreeze", 2000,false, "i",playerid);

Use this
Reply
#3

pawn Код:
SetTimerEx("unfreeze", 2000, false, "i", playerid);
SetTimerEx.
Reply
#4

Thank you guys. Please lock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)