[Ajuda] Erro Cmd - 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] Erro Cmd (
/showthread.php?tid=389441)
Erro Cmd -
Maklister - 02.11.2012
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;
}
Re: Erro Cmd -
zSuYaNw - 02.11.2012
GetPlayerHealth nгo returna a vida.
pawn Код:
public AtualizarChatBubble()
{
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(NaArena[x] == 1 || NaGZ[x] == 1)
{
new string[60], Float:Vida; GetPlayerHealth(x, Vida);
format(string, sizeof(string), "{F0F000}Vida {FF5151}%f", Vida);
SetPlayerChatBubble(x, string, -1, 30.0, 999999);
}
}
return 1;
}
Re: Erro Cmd -
Maklister - 02.11.2012
Quote:
Originally Posted by [Full]Garfield[XDB]
GetPlayerHealth nгo returna a vida.
pawn Код:
public AtualizarChatBubble() { for(new x = 0; x < MAX_PLAYERS; x++) { if(NaArena[x] == 1 || NaGZ[x] == 1) { new string[60], Float:Vida; GetPlayerHealth(x, Vida); format(string, sizeof(string), "{F0F000}Vida {FF5151}%f", Vida); SetPlayerChatBubble(x, string, -1, 30.0, 999999); } } return 1; }
|
Caraca nem sabia [Full]Garfield[XDB] Obrigado =)