Timer problem
#1

Ok I have this code that I got from old post :

PHP код:
new TimeTimeMTimeS;
new 
Text:Textdraw0
PHP код:
Textdraw0 TextDrawCreate(605.0,25.0,"5:00");
TextDrawBackgroundColor(Textdraw00x000000AA);
TextDrawFont(Textdraw03);
TextDrawLetterSize(Textdraw00.5,1.5);
TextDrawAlignment(Textdraw0,3);
TextDrawSetOutline(Textdraw02);
TextDrawSetProportional(Textdraw01);
TextDrawColor(Textdraw0,0xFFFFFFFF);
TimeM 5;
TimeS 0;
Time SetTimer("UpdateTime",1000true); 
PHP код:
TextDrawShowForPlayer(playeridTextdraw0); 
PHP код:
forward UpdateTime();
public 
UpdateTime()
{
  new 
Str[34];
  
TimeS --;
  if(
TimeM == && TimeS == 0)
  {
    
KillTimer(Time);
  }
  if(
TimeS == -1)
  {
    
TimeM--;
    
TimeS 59;
  }
  
format(Strsizeof(Str), "%02d:%02d"TimeMTimeS);
  
TextDrawSetString(Textdraw0Str);
  return 
1;

I want to make the textdraw start countdown from 5 minutes.But when I try IG its start from 4:30.
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: 3 Guest(s)