Hello friends! Today I have a serious problem! I made a system to unban players from my server, and I'm trying the following problem.. When I type the command "/unban" to unban a banned account from the server, from this following message!
"This account is not banned."
I no longer know what is causing this .. Because there really is a banned account!
Print: https://prnt.sc/p1hsvt
"This account is not banned."
Code:
CMD:unban(playerid, params[])
{
if(!Data[playerid][Connect])
return SendError(playerid, "You are not logged in to the server!");
if(sscanf(params, "s[24]s[16]", params[0], params[1]))
return SendSyntaxMessage(playerid, "/unban (NICK) And (IP)");
if(!DOF2_FileExists(GetBanFile(params[0])))
return SendError(playerid, "This account is not banned.");
DOF2_RemoveFile(GetBanFile(params[0]));
SendWarnning(playerid, "Account successfully removed from the list of bans.");
if(!DOF2_FileExists(GetIPBanFile(params[1])))
return SendError(playerid, "This IP is not banned.");
DOF2_RemoveFile(GetIPBanFile(params[1]));
SendWarnning(playerid, "Account IP has been successfully removed.");
return true;
}
Print: https://prnt.sc/p1hsvt