SA-MP Forums Archive
[Ajuda] ChatBubble - 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] ChatBubble (/showthread.php?tid=526290)



ChatBubble - Ts3 - 16.07.2014

Olб, tava tentando fazer dois textos em cima do player sendo eles ex

''Player'' -- para qualquer pessoa que logar no servidor...
''Admin'' -- apenas para adminstradores (sem ser rcon) a minha variavel de admin.

porйm nem compilar estб compilando cуdigo abaixo

pawn Код:
forward ChatBubble(playerid);


public ChatBubble(playerid)
{
    SetPlayerChatBubble(playerid, "Player", COLOR_VERDE, 100.0, 10000);
    return 1;
    {
        else
    }
    if (PlayerInfo[playerid][pAdmin] >= 0)
        SetPlayerChatBubble(playerid, "Admin", Azul, 100.0, 10000);
    return 1;
}
Irei reputar quem me ajudar.


Re: ChatBubble - SkilL_Fly - 16.07.2014

fiz no improviso ve se funciona
pawn Код:
public ChatBubble(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        SetPlayerChatBubble(playerid, "Admin", Azul, 100.0, 10000);
    }
    else if(PlayerInfo[playerid][pAdmin] == 0)
    {
        SetPlayerChatBubble(playerid, "Player", COLOR_VERDE, 100.0, 10000);
    }
}



Re: ChatBubble - BrasilPlayGames - 16.07.2014

forward ChatBubble(playerid);


public ChatBubble(playerid)
{
if(PlayerInfo[playerid][pAdmin] > 0){ SetPlayerChatBubble(playerid, "Admin", Azul, 100.0, 10000); }
if(PlayerInfo[playerid][pAdmin] == 0){ SetPlayerChatBubble(playerid, "Player", COLOR_VERDE, 100.0, 10000); }
return 1;
}


Re: ChatBubble - Kuddy - 16.07.2014

pawn Код:
forward ChatBubble(playerid);
public ChatBubble(playerid)
{
     if(PlayerInfo[playerid][pAdmin] >= 0){
          SetPlayerChatBubble(playerid, "Admin", Azul, 100.0, 10000);
     }
     else {
         SetPlayerChatBubble(playerid, "Player", COLOR_VERDE, 100.0, 10000);
     }
     return 1;
}
@edit net caiu, quando voltou outros 2 jб tinham respondido :v

Recomendo que de uma lida sobre operadores lуgicos.


Re: ChatBubble - Ts3 - 16.07.2014

Resolvido, usei o cуdigo do SkilL funcionou.

dei reputaзao a todos, Vlw galera.