[Ajuda] Bug contado
#1

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

Код:
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;
}
Reply


Messages In This Thread
Bug contado - by Marllun - 17.11.2016, 10:07
Re: [Ajuda]Bug contado - by Marllun - 18.11.2016, 03:19
Re: [Ajuda]Bug contado - by F1N4L - 18.11.2016, 11:45
Re: [Ajuda]Bug contado - by Marllun - 18.11.2016, 19:41
Re: [Ajuda]Bug contado - by zSuYaNw - 18.11.2016, 20:21
Re: [Ajuda]Bug contado - by Marllun - 18.11.2016, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)