How I Can Solve This Warning
#1

[Problem Solved]
Reply
#2

Try: http://dracoblue.net/tidy/pawn/
Reply
#3

Try this
pawn Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new count = 0;
    new string[128];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            if(AccInfo[i][Level] >= 1 && AccInfo[i][Hide] == 0)
            {
                if(AccInfo[i][Level] > 5)
                {
                    AdmRank = "Server Owner";
                }
                if(IsPlayerAdmin(i))
                {
                    AdmRank = "Server Owner";
                }
                else
                {
                    switch(AccInfo[i][Level])
                    {
                        case 1:
                        {
                            AdmRank = "Basic VIP";
                        }
                        case 2:
                        {
                            AdmRank = "VIP";
                        }
                        case 3:
                        {
                            AdmRank = "Basic Administrator";
                        }
                        case 4:
                        {
                            AdmRank = "Administrator";
                        }
                        case 5:
                        {
                            AdmRank = "Head Administrator";
                        }
                    }
                }
                switch(AccInfo[i][OnDuty])
                {
                    case 0: AdmDuty = "Playing!";
                    case 1: AdmDuty = "On Duty!";
                }
                    format(string, 128, "Level: %d - %s (Id:%i) | %s | %s\n",AccInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
                    count++;
                }
            }
        }
        if (count == 0)
        {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Admins online" ,"No admin online in the list", "Ok", "");
        }
        else
        {
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Admins online" ,string, "Ok", "");
        }
        return 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)