BanIP problem
#1

Код:
public OnPlayerConnect(playerid)
{        
        new playersip[256];
	GetPlayerIp(playerid,playersip,sizeof(playersip));
	new quer[256];
	format(quer, sizeof(quer), "SELECT * FROM bans WHERE TYPE=2 AND PlayerIP='%s'", playersip);
	mysql_query(quer);
	mysql_store_result();
    if(mysql_num_rows()!=0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Your IP is banned.");
        SendClientMessage(playerid, COLOR_WHITE, "For unban please visit forum");
        Kick(playerid);
        return 1;
    }
}
Why this code doesn't work ?
Reply


Messages In This Thread
BanIP problem - by cotyzor - 04.09.2012, 06:44
Re: BanIP problem - by Jakku - 04.09.2012, 06:45
Re: BanIP problem - by doreto - 04.09.2012, 09:11
Re: BanIP problem - by Jakku - 04.09.2012, 09:13
Re: BanIP problem - by mamorunl - 04.09.2012, 09:19
Re: BanIP problem - by Jakku - 04.09.2012, 11:27
Re: BanIP problem - by mamorunl - 04.09.2012, 11:32
Re: BanIP problem - by Jakku - 04.09.2012, 13:00
Re: BanIP problem - by mamorunl - 04.09.2012, 15:43
Re: BanIP problem - by Jakku - 04.09.2012, 16:56

Forum Jump:


Users browsing this thread: 2 Guest(s)