Small problem
#1

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.

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);
    }
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:

pawn Код:
if(strcmp(dini_Get("/blacklist.txt",name),true)
Thanks.
Reply


Messages In This Thread
Small problem - by Face9000 - 09.02.2011, 08:49
Re: Small problem - by Mean - 09.02.2011, 08:50
Re: Small problem - by Face9000 - 09.02.2011, 09:05
Re: Small problem - by Face9000 - 09.02.2011, 18:15
Re: Small problem - by Mean - 09.02.2011, 19:14
Re: Small problem - by Face9000 - 09.02.2011, 20:01
Re: Small problem - by Mokerr - 09.02.2011, 20:09
Re: Small problem - by MadeMan - 09.02.2011, 20:10
Re: Small problem - by Face9000 - 09.02.2011, 20:32
Re: Small problem - by MadeMan - 09.02.2011, 20:36

Forum Jump:


Users browsing this thread: 6 Guest(s)