Ban check wont work
#10

Hey guys why is this happening when loading IP from databse?

pawn Код:
[21:53:40] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `banai` WHERE `Player` = 'TypeR' OR `IP` = 'РH„Аь", callback: "(null)", format: "(null)"
I dont understand why it does this when it saves this before, i set it as a string.

Heres the lines that put the BAN on player:

pawn Код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `banai` ( `Admin`, `Player`, `Reason`, `IP`) VALUES ('%s', '%s', '%s', '%s')", Admin, banned_pname, Reason, IP);
    mysql_tquery(mysql, query);
How i get the IP onplayerconnect:

pawn Код:
GetPlayerIp(playerid, IP[playerid], 16);
At the top of the script:

pawn Код:
static
    mysql, //This variable will be used to manage our database
    Name[MAX_PLAYERS][24], //We will use this variable to store player's name.
    IP[MAX_PLAYERS][16] //We will use this variable to store player's ip.
    ;
What could be the issue?
Reply


Messages In This Thread
Ban check wont work - by Type-R - 28.08.2014, 04:13
Re: Ban check wont work - by Dotayuri - 28.08.2014, 04:27
Re: Ban check wont work - by Type-R - 28.08.2014, 04:44
Re: Ban check wont work - by Type-R - 28.08.2014, 16:23
Re: Ban check wont work - by FUNExtreme - 28.08.2014, 16:28
Re: Ban check wont work - by Type-R - 28.08.2014, 17:07
Re: Ban check wont work - by FUNExtreme - 28.08.2014, 17:36
Re: Ban check wont work - by Tisot - 28.08.2014, 20:03
Re: Ban check wont work - by Type-R - 29.08.2014, 03:02
Re: Ban check wont work - by Type-R - 30.08.2014, 14:47

Forum Jump:


Users browsing this thread: 5 Guest(s)