Unban cmd help?
#1

Hey so i have this for lvl 2+ admins

Код:
dcmd_unban(playerid,params[]) {
{
        if(AccInfo[playerid][Level] >= 2)
        {
            new tmp[256], Index;        tmp = strtok(params,Index);
            if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unban [name]");
            new adminname[MAX_PLAYER_NAME], string[128], unbanname[256];
            unbanname = tmp;
            if(udb_Exists(unbanname))    {
            dUserSetINT(unbanname).("banned", 0);
            GetPlayerName(playerid, adminname, sizeof(adminname));
            CMDMessageToAdmins(playerid,"UNBANNAME");
            format(string,sizeof(string),"Server: %s (ID: %d) has unbanned the name: \"%s\" .",adminname,playerid,unbanname);
            SendClientMessageToAll(green,string);
            SaveToFile("UnBanNameLog",string);
            print(string);
            return 1;
            } else return SendClientMessage(playerid, red, "ERROR: No player with this name.");
        } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
    } else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
}
And it gives me this warning:

Код:
C:\Users\Chris\Documents\Server\filterscripts\LuxAdmin.pwn(11191) : warning 203: symbol is never used: "dcmd_unban"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And, there is no line 11191 -_- only up to 11190.. will this command work? I know, it is just a warning, but i just want to get rid of it.

Thanks if you can help
Reply


Messages In This Thread
Unban cmd help? - by Snipa - 08.11.2010, 23:41
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 00:08
Re: Unban cmd help? - by Snipa - 09.11.2010, 01:02
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 01:22
Re: Unban cmd help? - by Snipa - 09.11.2010, 02:08
Re: Unban cmd help? - by MrDeath537 - 09.11.2010, 04:32
Re: Unban cmd help? - by Ritchie999 - 09.11.2010, 21:25
Re: Unban cmd help? - by Snipa - 09.11.2010, 23:57
Re: Unban cmd help? - by Ritchie999 - 10.11.2010, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)