/Admins Command
#3

PHP Code:
dcmd_admins(playerid,params[])
{
    
#pragma unused params
    //new count = 0;
    
new string[128];
    new 
PlayerName2[MAX_PLAYER_NAME];
    for(new 
0<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
AccInfo[i][Level] >= && AccInfo[i][Hide] == 0)
            {
                if(
AccInfo[i][Level] > 5)
                {
                    
AdmRank "Server Owner";
                }
                if(
IsPlayerAdmin(i))
                {
                    
AdmRank "RCON Administrator";
                }
                else
                {
                    switch(
AccInfo[i][Level])
                    {
                        case 
1AdmRank "Trial Moderator";
                        case 
2AdmRank "Moderator";
                        case 
3AdmRank "Administrator";
                        case 
4AdmRank "Senior Administrator";
                        case 
5AdmRank "Community Leader";
                    }
                }
                
GetPlayerName(iPlayerName2MAX_PLAYER_NAME);
                
format(stringsizeof(string), "%s (Id:%i) | %s"PlayerName2iAdmRank);
                
ShowPlayerDialog(playerid668DIALOG_STYLE_MSGBOX"Online Administrators",string,"Submit","Cancel");
            }
        }
    }
    return 
1;

There was a problem with the "PlayerName2(i)" lines, since you've never defined that variable perhaps? Unless that's a function of course.
Reply


Messages In This Thread
/Admins Command - by Jay_Dixon - 06.07.2013, 09:34
Re: /Admins Command - by iggy1 - 06.07.2013, 09:35
Re: /Admins Command - by Income - 06.07.2013, 11:14
Re: /Admins Command - by Jay_Dixon - 06.07.2013, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)