Commands problem
#1

hey guys , i have problem here
/admins cmd not show an other admin online
example;
if there is 5 admin online , do /admins , it will just show 1 admins online lol its weird :\

pawn Код:
CMD:admins(playerid, params[])
{
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            new str[1000];
            new Admin[MAX_PLAYER_NAME];
            GetPlayerName(i, Admin, sizeof(Admin));
            SendClientMessage(playerid, lightgreen, "----[{B4B5B7}0NLINE ADMIN{9ACD32}]----");
            format(str, sizeof(str), "[Admin]'%s - level %d", Admin, PlayerInfo[i][pAdmin]);
            SendClientMessage(playerid, grey, str);
            Count++;
        }
    }
    if(Count == 0)
    {
        SendClientMessage(playerid, lightred, "[System]: No Admin Online!");
    }
    return 1;
}
Reply


Messages In This Thread
Commands problem - by Devilxz97 - 05.12.2012, 03:51
Re: Commands problem - by maramizo - 05.12.2012, 04:02
Re: Commands problem - by Devilxz97 - 05.12.2012, 04:07
Re: Commands problem - by maramizo - 05.12.2012, 04:08
Re: Commands problem - by Devilxz97 - 05.12.2012, 04:09

Forum Jump:


Users browsing this thread: 1 Guest(s)