09.02.2011, 08:49
Hi,i made a sort of auto blacklist.When an admin ban a player,the banned player name going in a .txt file and OnPlayerConnect i made this.
It work in this way:
When a player connect,the server will check if the name is in blacklist.txt
IF IS in that file,than the player will be automatically re-banned,but i got a problem:
error 035: argument type mismatch (argument 2)
Error line is:
Thanks.
pawn Код:
if(strcmp(dini_Get("/blacklist.txt",name),true)
{
format(msg,sizeof msg,"7,2EVADER ALERT: Possible ban evade from %s - Autoban done.",name);
IRC_GroupSay(IRC_Group, EchoChan, msg);
if(strcmp(IP,dini_Get("/aips.log",name),true) == 0)
{
format(msg,sizeof msg,"7,2AC ALERT: (ID: 505) - Detected ban evasion by %s with IP: %s",name,IP);
format(msg,sizeof msg,"7,2AC ALERT: (ID: 505) - The IP %s is associated at ban evader %s from country %s",IP,name,GetPlayerCountryName(playerid));
format(msg,sizeof msg,"7,2AC ALERT: (ID: 505) - %s with IP: %s was Auto Kicked by AntiCheat for Attempted Ban Evasion.",name,IP);
IRC_GroupSay(IRC_Group, EchoChan, msg);
BanEx(playerid, "Banned by System for: BAN EVASION.");
format(msg,sizeof msg,"banip %s",IP);
SendRconCommand(msg);
}
return Ban(playerid);
}
When a player connect,the server will check if the name is in blacklist.txt
IF IS in that file,than the player will be automatically re-banned,but i got a problem:
error 035: argument type mismatch (argument 2)
Error line is:
pawn Код:
if(strcmp(dini_Get("/blacklist.txt",name),true)