[Ajuda] Problema com textdraw
#1

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.
Reply


Messages In This Thread
[Ajuda] Problema com textdraw - by cotonete - 10.10.2011, 16:24
Re: [Ajuda] Problema com textdraw - by cotonete - 10.10.2011, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)