02.11.2012, 03:43
Quando entro em algum GangZone ou na Favela automaticamente seta um chatbubble com a vida atual do jogador, so que no meu caso esta ficando 0.00000 emcima da cabeзa do player, troquei o parametro pra %d e ficou 0 =/
PHP код:
public AtualizarChatBubble()
{
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(NaArena[x] == 1)
{
new string[60], Float:Vida;
format(string, sizeof(string), "{F0F000}Vida {FF5151}%f", GetPlayerHealth(x, Vida));
SetPlayerChatBubble(x, string, -1, 30.0, 999999);
}
else if(NaGZ[x] == 1)
{
new string[60], Float:Vida;
format(string, sizeof(string), "{F0F000}Vida {FF5151}%f", GetPlayerHealth(x, Vida));
SetPlayerChatBubble(x, string, -1, 30.0, 999999);
}
}
return 1;
}