SA-MP Forums Archive
[Ajuda] Problema com textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema com textdraw (/showthread.php?tid=289206)



[Ajuda] Problema com textdraw - cotonete - 10.10.2011

Alguem sabe me dizer porque essa textdraw:

Код:
public atualizarTextHpCar(playerid)
{
	new string[128];
	if(IsPlayerInAnyVehicle(playerid))
	{
		for(new i = 0; i < MAX_PLAYERS; ++i)
		{
			new Float:vHealth;
			GetVehicleHealth(GetPlayerVehicleID(i), vHealth);
    		format(string,sizeof(string),"HP Veўculo: %0.0f%%",vHealth);
	    	TextDrawSetString(TextHpVeiculo, string);
	    	TextDrawShowForPlayer(i, TextHpVeiculo);
		}
	}
	else
	{
		TextDrawHideForPlayer(playerid, TextHpVeiculo);
	}
	return 1;
}
ele sу mostra 0, nгo atualiza, depois que eu coloquei esse for.


Re: [Ajuda] Problema com textdraw - cotonete - 10.10.2011

ah perdгo.. jб arrumei, eu estava cego :P