Admin Duty! [HELP]
#1

Hey all i have problem with /aduty command
i wanted do add it in LuxAdmin but i got that mutch eroors:

Код:
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3047) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3049) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3051) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3054) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3056) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3058) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3064) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3066) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\test1\LuxAdmin.pwn(3068) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
pawn Код:
if(!strcmp(cmdtext, "/adminduty", true) || !strcmp(cmdtext, "/aduty", true)) //
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You need to login first !");
                return 1;
            }
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(PlayerInfo[playerid][pAdminDuty] == 0)
                {
                    PlayerInfo[playerid][pAdminDuty] = 1;
                    SetPlayerColor(playerid,0xFF66FF00);
                    format(string, sizeof(string),"[ADMIN]: %s is now on Admin Duty", sendername);
                    ABroadCast(COLOR_LIGHTRED, string, 1);
                    DutyLabel[playerid] = Create3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
                    Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
                    if(PlayerInfo[playerid][pAdmin] >= 5)
                    {
                        for(new i = 0; i < sizeof(CarInfo); i++)
                        {
                            SetVehicleParamsForPlayer(i,playerid,0,0);
                        }
                    }
Reply
#2

Show error lines
Reply
#3

sure:

Код:
3047 Line: if(!strcmp(cmdtext, "/adminduty", true) || !strcmp(cmdtext, "/aduty", true))
3049 Line: if(IsPlayerConnected(playerid))
3051 Line: if(gPlayerLogged[playerid] == 0)
3054 Line: return 1;
3056 Line: if(PlayerInfo[playerid][pAdmin] >= 1)
3058 Line: if(PlayerInfo[playerid][pAdminDuty] == 0)
3064 Line: DutyLabel[playerid] = Create3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
3066 Line: if(PlayerInfo[playerid][pAdmin] >= 5)
3068 Line: for(new i = 0; i < sizeof(CarInfo); i++)
Or can you make code for LuxAdmin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)