22.01.2012, 12:08
Hey guys well I use MySQL and i've just finished making my ban cmd for saving the players IP, User and reason to a table called Banned, but for some reason. It saved the IP as 55. Any idea why that is? Heres the code
pawn Код:
new ip[16];
GetPlayerIp(id, ip, sizeof(ip));
format(query, sizeof(query), "INSERT INTO `Banned` (`User`, `Reason`, `IP`) VALUES ('%s', '%s', '%d')", pname, reason, ip);
mysql_query(query);