[PEDIDO]: Cronometrar tempo de corrida (GETTICKCOUNT)
#1

Уla... Bom eu estava fazendo um timeattack no big ear, eu testei deu tudo certo.... Menos o cronometrador do tempo.. Ele buga.. Coloca os nъmeros super grandes . Jб tirei do Timeattack й jб testei em meu gm... Mais nгo deu certo! Eu usei este topico: https://sampforum.blast.hk/showthread.php?tid=149922 . Serб que vocкs poderiam me ajudar? Olhe a print do Bug:

Reply
#2

no topo:
pawn Код:
new Hora[MAX_PLAYERS], Min[MAX_PLAYERS], Sec[MAX_PLAYERS];
Quando iniciar Corrida >
pawn Код:
gettime(Hora[playerid], Min[playerid] Sec[playerid]);
quando terminar:
pawn Код:
new H,M,S, tH, tM,tS;
gettime(H,M,S);

tH   = H -= Hora[playerid];
tM   = M -= Min[playerid];
tS   = S -= Sec[playerid]

new string[128];
format(string, sizeof(string),"Vocк terminou a corrida em: %02d:02d:02d", tH, tM, tS);
SendClientMessage(playerid, -1, string);
Reply
#3

(RETIRADO)
Reply
#4

bota ;
no final de:
pawn Код:
tS   = S -= Sec[playerid]
Reply
#5

Nossa, deu erro agora fica assim:
00:02d:02d .
Reply
#6

subistitui:
pawn Код:
format(string, sizeof(string),"Vocк terminou a corrida em: %02d:%02d:%02d", tH, tM, tS);
Reply
#7

Thanks Carolina..
Reputation ( :
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)