What's better of these two?
#1

What's the best option to make timers from these two options.
Multiple Timers

A
PHP Code:
new stime;
forward Time();
public 
OnGameModeInit()
{
      
SetTimer("Time",1000,true);
      return 
1;
}
public 
Time()
{
       
// some code
      
if(stime%120==0// Do some code each 2 minutes
      
{
      }
      if(
stime%1800 == 0// Do some code each 1800 seconds
      
{
      }
      
stime++;
      return 
1;

Or

B
PHP Code:
public OnGameModeInit()
{
      
SetTimer("Time",1000,true);
      
SetTimer("Time1",120000,true);
      
SetTimer("Time2"1800000true);
      return 
1;
}
forward Time();
forward Time1();
forward Time2();
public 
Time()
{
}
public 
Time1()
{
}
public 
Time2()
{

What's best? A or B
Reply


Messages In This Thread
What's better of these two? - by StrikerZ - 03.10.2017, 12:52
Re: What's better of these two? - by DelK - 03.10.2017, 13:21
Re: What's better of these two? - by OneDay - 03.10.2017, 13:33
Re: What's better of these two? - by whadez - 03.10.2017, 13:35
Re: What's better of these two? - by whadez - 03.10.2017, 13:40
Re: What's better of these two? - by StrikerZ - 03.10.2017, 13:48
Re: What's better of these two? - by coool - 03.10.2017, 15:54
Re: What's better of these two? - by KaryM4Life - 21.10.2017, 18:15
Re: What's better of these two? - by jlalt - 21.10.2017, 18:18
Re: What's better of these two? - by KaryM4Life - 22.10.2017, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)