17.11.2016, 10:07
(
Последний раз редактировалось Lуs; 20.11.2016 в 04:54.
)
BUG CONTADO
Olб pessoal, hoje eu estou aqui para resolver um bug muito estranho, eu nгo sei por quer ele ta acontecendo. O bug й o contado sempre pula 1 segundo tipo 1 2 4 5 6 7 8 9 10 й com todos os nъmeros nгo sei oque й se alguйm pode ajudar o cуdigo estб aн em baixo.
CODE
Olб pessoal, hoje eu estou aqui para resolver um bug muito estranho, eu nгo sei por quer ele ta acontecendo. O bug й o contado sempre pula 1 segundo tipo 1 2 4 5 6 7 8 9 10 й com todos os nъmeros nгo sei oque й se alguйm pode ajudar o cуdigo estб aн em baixo.
CODE
Код:
forward updateTime(playerid); new gMinutes, gSeconds; public updateTime(playerid) { new Time2, timestamp; new tmp[10]; timestamp = GetTickCount(); if (gRaceStart != 0) Time2 = timestamp - gRaceStart; else Time2=5; new MSeconds; timeconvert(Time2, gMinutes, gSeconds, MSeconds); gindex=0; while (gSeconds > 9) { gSeconds-=10; gindex++; } format(tmp,10,"%d:%d%d",gMinutes,gindex,gSeconds); TextDrawSetString(Ttime, tmp); } createTextDraws() { Ttime = TextDrawCreate(563.0, 376.0, "0"); TextDrawLetterSize(Ttime, 0.6, 3); TextDrawColor(Ttime,0xffffffff); TextDrawSetShadow(Ttime,1); } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Ttime); return 1; }