30.08.2014, 14:47
Hey guys why is this happening when loading IP from databse?
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:
How i get the IP onplayerconnect:
At the top of the script:
What could be the issue?
pawn Код:
[21:53:40] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `banai` WHERE `Player` = 'TypeR' OR `IP` = 'РH„Аь", callback: "(null)", format: "(null)"
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);
pawn Код:
GetPlayerIp(playerid, IP[playerid], 16);
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.
;