[Ajuda] Contador regressivo
#1

estou criando um contador regressivo de 10 minutos, ele conta corretamente sу que em segundos desta forma:

600, 599, 598, 597...

como eu faria para contar assim? :

10:00, 09:59, 09:58, 09:57 ..

pawn Код:
#define TempoPartida 10 //minutos
new TempoRestante = TempoPartida*60;

SetTimer("RoundTimer",1000,true);

forward Timer();
public Timer()
{
    printf("%d",TempoRestante);
    TempoRestante --;
}
Reply
#2

format(string,sizeof(string),"%02d:%02d",TempoRest ante/60,TempoRestante%60);
GameTextForPlayer(playerid,string,3000,6);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)