Thread: unban cmd error
View Single Post
Old 21/03/2014, 12:51 PM   #1
Sojo12
Banned
 
Join Date: Jul 2013
Location: Search and you'll find it...
Posts: 444
Reputation: 43
Default unban cmd error

I took this code from this forum only but im getting else erros and dont know how to fix it.Help will be appreciated.
Code:
Code:
CMD:unban(playerid, params[])
{
        new string[128];
        new pName[24];
        if(isnull(params)) return SendClientMessage(playerid, -1, "{FF0099}[ADMIN]{FFFFFF} /unban [playername]");
        {
            format(string, 128, "{FF0099}[ADMIN]{FFFFFF} '%s' has been unbanned by %s.", params,pName);
            SendClientMessageToAll(COLOR_ADMIN,string);
            new year, month,day;
            getdate(year, month, day);
            new playa[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playa, MAX_PLAYER_NAME);
            format(string, sizeof(string), "{FF0099}[ADMIN]{FFFFFF} '%s' has been unbanned by %s.", params, playa);
            SendClientMessageToAll(COLOR_ADMIN, string);
        }
        else
        {
            SendClientMessage( playerid, -1, "{FF0000}[ERROR]{FFFFFF}Not a banned account or no such account was found!" );
        }
    return 1;
}
Sojo12 is offline   Reply With Quote