[Ajuda] /Admins Bugado
#1

Bom , estava dando uma olhada em meu sistema de administraзao e reparei que tinha um bug em /admins
esta mostrando asssim : Nome do fulano [ID : Id do fulano] aqui o tipo de admin
ex : Fulano - [ID:0] - Level 1 [Aprendiz] (Esta parte esta Resolvida)

Pedido \/

pawn Код:
YCMD:admins(playerid, params[], help)
{
  if(IsPlayerConnected(playerid))
    {
        new STNG[300];
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(P_Data[i][pAdmin] > 1)
                {
                        new admin[60];
                        if(P_Data[i][pAdmin] == 1){ admin = "[Level 1] - Beginner"; }
                        else if(P_Data[i][pAdmin] == 2) { admin = "[Level 2] - Smart"; }
                        else if(P_Data[i][pAdmin] == 3) { admin = "[Level 3] - Clever"; }
                        else if(P_Data[i][pAdmin] == 4) { admin = "[Level 4] - Expert"; }
                        else if(P_Data[i][pAdmin] == 5) { admin = "[Level 5] - Owner"; }
                        new SDNM[MAX_PLAYER_NAME];
                        GetPlayerName(i, SDNM, sizeof(SDNM));
                        format(STNG, 300, "%s {FF0000}- {5252FF}[ID:%d] {FF0000}- {FF0000}%s", SDNM, playerid, admin, i);
                }
            }
        }
        ShowPlayerDialog(playerid, 21323123, DIALOG_STYLE_LIST, "Admins Online:", STNG, "Close", "");
    }
    return 1;
}
Como eu posso colocar uma Dialog Msg Box , no caso de nao ter nenhum adm conectado ?
Reply


Messages In This Thread
Problema em /Admins - by Patrick141 - 27.03.2015, 01:40
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 01:52
Re: /Admins Bugado - by fehzl - 27.03.2015, 01:54
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 01:57
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 02:01
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 02:06
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 02:14
Re: /Admins Bugado - by Whoo - 27.03.2015, 03:53
Re: /Admins Bugado - by Sky™ - 27.03.2015, 11:05
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)