06.01.2010, 20:38
Hi,
I just wanted to ask how is it better to make timers. I had this version in past:
But today i made something like this:
Which one is better/causes less lags? And are there any other ways to make timers?
Thanks.
I just wanted to ask how is it better to make timers. I had this version in past:
pawn Code:
public OnGameModeInit()
{
SetTimer("Timer1",200,1);
SetTimer("Timer2",60000,1);
SetTimer("Timer3",1000,1); //1 sec
SetTimer("Timer4",3000,1);
SetTimer("Timer5",1000,1); //1 sec
SetTimer("Timer6",1000,1); //1 sec
}
pawn Code:
public OnGameModeInit()
{
SetTimer("Timer1",200,1);
SetTimer("Timer2",60000,1);
SetTimer("oneSecTimer",1000,1); //1 sec
SetTimer("Timer4",3000,1);
}
oneSecTimer();
{
Timer3();
Timer5();
Timer6();
}
Thanks.