Timer Help again
#3

Код:
new Countdown = 20;
new CountDownTimer;
forward Countdowntimer(playerid);

CountDownTimer= SetTimer("Countdowntimer", 999, true);

public Countdowntimer(playerid)
{
	Countdown--;
	new string[128];
  format(string, sizeof(string), "%d", Countdown);
  TextDrawSetString(cd, string);
  TextDrawShowForAll(cd);
  
  if(Countdown == 0)
  {
  new rand = random(sizeof(gRandomPlayerSpawns));
  ResetPlayerWeapons(playerid);
  KillTimer(CountDownTimer);
  TextDrawHideForAll(cd);
  TextDrawHideForAll(Textdraw4);
  Countdown = 20; // This is line where i reset the time seconds to 20 again. But it doesnt work
  }
}
Reply


Messages In This Thread
Timer Help again - by deather - 25.01.2010, 10:53
Re: Timer Help again - by Deat_Itself - 25.01.2010, 10:58
Re: Timer Help again - by deather - 25.01.2010, 10:59
Re: Timer Help again - by Deat_Itself - 25.01.2010, 11:05
Re: Timer Help again - by deather - 25.01.2010, 11:09
Re: Timer Help again - by Deat_Itself - 25.01.2010, 11:18
Re: Timer Help again - by deather - 25.01.2010, 11:37

Forum Jump:


Users browsing this thread: 3 Guest(s)