Unban command
#4

I still have a problem, I fixed the error but when i try unbanning the player it says
"Account not found" and the ban stays.

Code:
CMD:unban(playerid,params[])
{
    new string[124],string1[124];
    if(isnull(params)) return SendClientMessage(playerid, red, "/unban [playername]");
    format(string,sizeof(string),"Users/%s.ini",params);
    if(fexist(string))
    {
					SaveToFile("AdminLog",string);
					dUserSetINT(PlayerName2(playerid)).("banned",0);
    }
    else SendClientMessage(playerid, red, "Account not found");
    return 1;
}
Reply


Messages In This Thread
Unban command - by Droxx - 31.05.2017, 11:10
Re: Unban command - by coool - 31.05.2017, 12:16
Re: Unban command - by Droxx - 31.05.2017, 14:57
Re: Unban command - by Droxx - 31.05.2017, 18:24
Re: Unban command - by JasonRiggs - 31.05.2017, 18:28
Re: Unban command - by Droxx - 31.05.2017, 18:29
Re: Unban command - by JasonRiggs - 31.05.2017, 18:32
Re: Unban command - by Droxx - 31.05.2017, 18:45
Re: Unban command - by Sumit4 - 31.05.2017, 18:54
Re: Unban command - by Droxx - 31.05.2017, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)