[Ajuda] Erro Cmd
#1

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 
0MAX_PLAYERSx++)
    {
        if(
NaArena[x] == 1)
        {
            new 
string[60], Float:Vida;
            
format(stringsizeof(string), "{F0F000}Vida {FF5151}%f"GetPlayerHealth(xVida));
            
SetPlayerChatBubble(xstring, -130.0999999);
        }
        else if(
NaGZ[x] == 1)
        {
            new 
string[60], Float:Vida;
            
format(stringsizeof(string), "{F0F000}Vida {FF5151}%f"GetPlayerHealth(xVida));
            
SetPlayerChatBubble(xstring, -130.0999999);
        }
    }
    return 
1;

Reply
#2

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;
}
Reply
#3

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 =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)