/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
#2

pawn Code:
format(string, sizeof(string), "ID: %i %s Level: %i",playerid, iname, PlayerInfo[i][pAdminLevel]);
Reply
#3

It works, thanks.

Respect man, you help alot of people
Reply
#4

Quote:
Originally Posted by _rAped
View Post
pawn Code:
format(string, sizeof(string), "ID: %i %s Level: %i",playerid, iname, PlayerInfo[i][pAdminLevel]);
What About..

pawn Code:
format(string, sizeof(string), "ID: %i %s Level: %d",playerid, iname, PlayerInfo[i][pAdminLevel]);
To change the last %i to %d ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)