PDA

View Full Version : Timers.


Snoopythekill
09/08/2014, 09:26 AM
Is bad this ?




for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Ann_timer[i] = SetTimerEx("WelcomeTimer", 750, true, "i", i);
}
}

[XST]O_x
09/08/2014, 10:34 AM
Yes. You're setting 500 timers at the same time to do the same thing.
Why not just doing:

Ann_timer = SetTime("WelcomeTimer", 750, true);