Unban cmd help?
#9

Try this
pawn Код:
dcmd_unban(playerid,params[])
{
        if(AccInfo[playerid][Level] >= 2)
        {
            new tmp[256], Index;        tmp = strtok(params,Index);
            new File:open = fopen("LuxAdmin/Config/UnBanNameLog",io_write);
            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));
            MessageToAdmins(green,string);
            format(string,sizeof(string),"Server: %s (ID: %d) has unbanned the name: \"%s\" .",adminname,playerid,unbanname);
            SendClientMessageToAll(green,string);
            print(string);
            }
        }
      return 1;
}
Only 2 warnings
Код:
C:\Users\jk\Documents\Old Shit\GTa Server\0.3B R2\filterscripts\LuxAdmin.pwn(2737) : warning 204: symbol is assigned a value that is never used: "open"
C:\Users\jk\Documents\Old Shit\GTa Server\0.3B R2\filterscripts\LuxAdmin.pwn(2737 -- 2750) : warning 217: loose indentation
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: 1 Guest(s)