05.06.2011, 20:19
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:
What's wrong?Thanks for help.
"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);