Admins online
#3

Ah I resolved all almost all errors now, but I get some different error (on 1 line only)
Код:
CMD:admins(playerid,params[])
{
    #pragma unused params
    new string[150],count = 0,AdminPos[30];
    new GetPName[MAX_PLAYER_NAME];
    for(new i = 0;i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdminLevel] >= 1)
            {
                if(PlayerInfo[i][pAdminLevel] == 1) AdminPos="Moderator";
                else if(PlayerInfo[i][pAdminLevel] == 2) AdminPos="Administrator";
                else if(PlayerInfo[i][pAdminLevel] == 3) AdminPos="Head Administrator";
                else if(PlayerInfo[i][pAdminLevel] == 4) AdminPos="Owner";
                format(string,sizeof(string),"%s %s(ID:%d) %s \n",string,GetPName(i),i,AdminPos);
                ShowPlayerDialog(playerid,Adminsdialog,0,"Admins Online",string,"OK","");
                count++;
            }
        }
        else if(count == 0)
        {
            ShowPlayerDialog(playerid,Adminsdialog,0,"Admins Online","No Admins Online!","OK","");
        }
    }
    return 1;
}
Error line:
Код:
format(string,sizeof(string),"%s %s(ID:%d) %s \n",string,GetPName(i),i,AdminPos);
Reply


Messages In This Thread
Admins online - by Squirrel - 05.05.2013, 16:41
Re: Admins online - by jakejohnsonusa - 05.05.2013, 17:01
AW: Admins online - by Squirrel - 05.05.2013, 17:02
Re: Admins online - by ryanhawk31 - 05.05.2013, 17:08
AW: Admins online - by Squirrel - 05.05.2013, 17:24
Re: Admins online - by jakejohnsonusa - 05.05.2013, 17:42
AW: Admins online - by Squirrel - 05.05.2013, 17:43
Re: Admins online - by jakejohnsonusa - 05.05.2013, 17:50
AW: Admins online - by Squirrel - 05.05.2013, 17:51
Re: Admins online - by jakejohnsonusa - 05.05.2013, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)