09.02.2011, 15:32
hi,
ive made a countdown in a textdraw counting from 300 seconds (5 mins) down to 0.
Now it counts like 300,299,298.... in seconds but i want to count it down like 5:00,4,59,4,58... in minutes.
How would i do that?
regards...
ive made a countdown in a textdraw counting from 300 seconds (5 mins) down to 0.
Now it counts like 300,299,298.... in seconds but i want to count it down like 5:00,4,59,4,58... in minutes.
How would i do that?
pawn Код:
countdownzone = 300;
public counterzone(playerid)
{
for(new i; i < MAX_PLAYERS; i ++)
{
if(HasEntered[i] == 1 && countdownzone > 0)
{
CDONZone = SetTimer("counterzone",990,false);
new textformat[85];
format(textformat,sizeof textformat,"~g~%d",countdownzone);
TextDrawSetString(MiniCountdown,textformat);
TextDrawShowForPlayer(i,MiniCountdown);
}
}
countdownzone --;
return 1;
}