/admins command help
#1

when i type /admins it shows ID: 67, and Level: 37, when is supposed to be 3, also it doesnt show my name

pawn Code:
dcmd_admins(playerid, params[])
{
    #pragma unused params
    new iname[MAX_PLAYER_NAME], string[180], count=0;
    SendClientMessage(playerid, AdminColor, "Online Adminstrators");
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdminLevel] >=1)
        {
            GetPlayerName(i, iname, sizeof(iname));
            format(string, sizeof(string), "ID: %i %s Level: %i",iname, PlayerInfo[i]);
            SendClientMessage(playerid, AdminColor, string);
            count++;
        }
    }
    if(count==0) SendClientMessage(playerid, AdminColor, "No admins online");
    return 1;
}
please help
Reply


Messages In This Thread
/admins command help - by xir - 06.01.2011, 13:18
Re: /admins command help - by _rAped - 06.01.2011, 13:19
Re: /admins command help - by xir - 06.01.2011, 13:24
Re: /admins command help - by titanak - 06.01.2011, 13:25

Forum Jump:


Users browsing this thread: 5 Guest(s)