Timer problem
#8

Time units are relative and any unit can be converted to another. It is common knowledge that a minute is 60 seconds. Hence, 5 minutes is 5 x 60 = 300 seconds. So why two variables?

It then becomes:
PHP код:
forward UpdateTime();
public 
UpdateTime()
{
  if(--
TimeS <= 0)
  {
    
KillTimer(Time);
  }
    
  new 
Str[34];
  
format(Strsizeof(Str), "%02d:%02d"TimeS 60TimeS 60);
  
TextDrawSetString(Textdraw0Str);
  return 
1;

Obviously set TimeS to 300 seconds (= 5 minutes).
Reply


Messages In This Thread
Timer problem - by Sh4d0w2 - 05.11.2015, 05:23
Re: Timer problem - by iKarim - 05.11.2015, 05:48
Re: Timer problem - by Sh4d0w2 - 05.11.2015, 05:53
Re: Timer problem - by iKarim - 05.11.2015, 06:14
Re: Timer problem - by Sh4d0w2 - 05.11.2015, 06:21
Re: Timer problem - by PrO.GameR - 05.11.2015, 07:51
Re: Timer problem - by Sh4d0w2 - 05.11.2015, 08:15
Re: Timer problem - by Vince - 05.11.2015, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)