Objects timer help!
#1

Ok, I add a timer to my server for objects to load. Now i have a problem if i only join the timer work but if we are more then 1 player, the player freeze here the code's

Top of script : forward ToggleTimer(playerid);

On PlayerSpawn : TogglePlayerControllable(playerid, false);
SetTimer("ToggleTimer", 1020, 0);//

___________________

public ToggleTimer(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}

On Teles i do this

SetPlayerPos(blablabla);
TogglePlayerControllable(playerid, false);
SetTimer("ToggleTimer", 1000, 0);//


Can someone tell me why its freeze the player when there 2 players on the server


sry for my bad english
Reply
#2

Код:
SetTimerEx("ToggleTimer", 1020, false, "i", playerid);
Use this
Reply
#3

what is the i part for in timers? i'm not good with them
Reply
#4

Quote:
Originally Posted by Kar
Посмотреть сообщение
what is the i part for in timers? i'm not good with them
Me too,but I believe because playerid is an integer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)