need two helps
#5

admin cmd + login system did not work but i made this admin cmd
pawn Код:
dcmd_admins(playerid, cmdtext[]) {
        new strtext[1000];
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_GREEN, ".::Admins OnLine::.");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[playerid][ pAdmin ] >= 1)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[Junior Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x99CCCCAA, string)
                    }
                    if(PlayerInfo[playerid][ pAdmin ] >= 2)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[General Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x99FFCCAA, string);
                    }
                    if(PlayerInfo[playerid][ pAdmin ] >= 3)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[Senior Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x99FFCCAA, string);
                    }
                    if(PlayerInfo[playerid][ pAdmin ] >= 4)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[Head Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x008D04FF, string);
                    }
                    if(PlayerInfo[playerid][ pAdmin ] >= 5)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[[Server Manager] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x006CA2FF, string);
                    }
                    if(PlayerInfo[i][pAdmin] == 6)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[Co-Executive Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x006CA2FF, string);
                    }
                    if(PlayerInfo[playerid][ pAdmin ] >= 7)
                    {
                        GetPlayerName(i, playern, sizeof(playern));
                        format(string, 128, "*[Executive Admin] %s [ID: %d]", playern, i);//, i, PlayerInfo[i][pAdmin]
                        //SendClientMessage(playerid, 0x794040FF, string);
                    }
                    strcat(string, "\n");
                    strcat(strtext, string);
                }
            }
            ShowPlayerDialog(playerid, 0xF, DIALOG_STYLE_MSGBOX,"~ Admins ~", strtext, "Ok",#);
        }
        return 1;
    }
Код:
D:\Drivers\unused\XTREME~1\GAMEMO~1\LSTWSE.pwn(1754) : error 017: undefined symbol "playern"
D:\Drivers\unused\XTREME~1\GAMEMO~1\LSTWSE.pwn(1754) : error 017: undefined symbol "playern"
D:\Drivers\unused\XTREME~1\GAMEMO~1\LSTWSE.pwn(1754) : error 029: invalid expression, assumed zero
D:\Drivers\unused\XTREME~1\GAMEMO~1\LSTWSE.pwn(1754) : fatal error 107: too many error messages on one line
line 1754= GetPlayerName(i, playern, sizeof(playern));
Reply


Messages In This Thread
need two helps - by Pro_Scriptor - 22.07.2012, 08:09
Re: need two helps - by Kindred - 22.07.2012, 08:17
Re: need two helps - by Pro_Scriptor - 22.07.2012, 14:52
Re: need two helps - by [MM]RoXoR[FS] - 22.07.2012, 14:57
Re: need two helps - by Pro_Scriptor - 23.07.2012, 07:04

Forum Jump:


Users browsing this thread: 2 Guest(s)