SA-MP Forums Archive
Timers. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timers. (/showthread.php?tid=530819)



Timers. - Snoopythekill - 09.08.2014

Is bad this ?



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



Re: Timers. - [XST]O_x - 09.08.2014

Yes. You're setting 500 timers at the same time to do the same thing.
Why not just doing:
pawn Код:
Ann_timer = SetTime("WelcomeTimer", 750, true);