Error 035, and a little help with /Admins
#2

Код:
CMD:admins(playerid,params[])
    {
        new string[128];
        new strtext[1000];
        new nname[MAX_PLAYER_NAME];
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_LIGHTGREEN, "Admins OnLine");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(pInfo[playerid][Adminlevel] == 1)
                    {
                        GetPlayerName(playerid,nname,MAX_PLAYER_NAME);
                        format(string,sizeof(string),"*[lv1 admin] %s [ID: %d]", nname, playerid);
                        SendClientMessage(playerid,COLOR_WHITE,string);
                    }
                    if(pInfo[playerid][Adminlevel] == 2)
                    {
                        GetPlayerName(playerid,nname,MAX_PLAYER_NAME);
                        format(string,sizeof(string),"*[lv2 admin] %s [ID: %d]", nname, playerid);
                        SendClientMessage(playerid,COLOR_WHITE,string);
                    }
                    if(pInfo[playerid][Adminlevel] == 3)
                    {
                        GetPlayerName(playerid,nname,MAX_PLAYER_NAME);
                        format(string,sizeof(string),"*[lv3 admin] %s [ID: %d]", nname, playerid);
                        SendClientMessage(playerid,COLOR_WHITE,string);
                    }
                    if(pInfo[playerid][Adminlevel] == 4)
                    {
                        GetPlayerName(playerid,nname,MAX_PLAYER_NAME);
                        format(string,sizeof(string),"*[lv4 admin] %s [ID: %d]", nname, playerid);
                        SendClientMessage(playerid,COLOR_WHITE,string);
                    }
                    if(pInfo[playerid][Adminlevel] == 5)
                    {
                        GetPlayerName(playerid,nname,MAX_PLAYER_NAME);
                        format(string,sizeof(string), "*[lv5 admin] %s [ID: %d]", nname, playerid);
                        SendClientMessage(playerid,COLOR_WHITE,string);
                    }
                }
            }
            ShowPlayerDialog(playerid, 0xF, DIALOG_STYLE_MSGBOX,"~ Admins ~", strtext, "Ok",#);
        }
        return 1;
    }
Try this

Код:
format(string,sizeof(string), 128, "*[lv2 admin] %s [ID: %d]", nname, playerid); //The 128 is giving the error, not needed there
Reply


Messages In This Thread
Error 035, and a little help with /Admins - by The.Game - 22.10.2012, 11:25
Re: Error 035, and a little help with /Admins - by CentyPoo - 22.10.2012, 11:33
Re: Error 035, and a little help with /Admins - by park4bmx - 22.10.2012, 11:33
Re: Error 035, and a little help with /Admins - by The.Game - 22.10.2012, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)