Problem with textdraw countdown
#1

Hi guys,i created a textdraw command when a player enter in a zone,all works but it shows:

"Stay here for -240 seconds"

Where normal should be "Stay here for 60 seconds..59..58"

Here's the code:

pawn Код:
forward CountDown(playerid);
public CountDown(playerid)
{

    seconds--;
    new string[178];
    format(string,sizeof(string),"Stay in the turf %d for take over it!",seconds);
    TextDrawSetString(CountDownTD,string);

   if(seconds == 0)
   {
     TextDrawHideForPlayer(playerid, CountDownTD);
   }
   return 1;
}
pawn Код:
SetTimerEx("CountDown", 120000, true, "i", 1);
What's wrong?Thanks for help.
Reply


Messages In This Thread
Problem with textdraw countdown - by Face9000 - 05.06.2011, 20:19
Re: Problem with textdraw countdown - by Mean - 05.06.2011, 20:21
Re: Problem with textdraw countdown - by Face9000 - 05.06.2011, 20:38
Re: Problem with textdraw countdown - by Face9000 - 06.06.2011, 09:05
Re: Problem with textdraw countdown - by Mean - 06.06.2011, 09:45
Re: Problem with textdraw countdown - by Face9000 - 06.06.2011, 10:19
AW: Problem with textdraw countdown - by Nero_3D - 06.06.2011, 10:52
Re: Problem with textdraw countdown - by Face9000 - 06.06.2011, 11:11
AW: Problem with textdraw countdown - by Nero_3D - 06.06.2011, 11:26
Re: Problem with textdraw countdown - by Face9000 - 06.06.2011, 12:13
Re: Problem with textdraw countdown - by Basicz - 06.06.2011, 12:29
Re: Problem with textdraw countdown - by Face9000 - 06.06.2011, 15:06

Forum Jump:


Users browsing this thread: 2 Guest(s)