05.12.2010, 20:04
the print is correct but... it doesnt input it into the database, it inputs id 0 unbandate 0 and nothing else
pawn Код:
[17:02:04] INSERT INTO Bans (`Banid`,`Name`,`IP`,`UnbanDate`,`Reason`) VALUES (1,'Nerd','192.168.1.10',20,'Auto Speed Hack Ban')
pawn Код:
new bEscape[3][80];
mysql_real_escape_string(Playername(playerid),bEscape[0]);
mysql_real_escape_string(ip,bEscape[1]);
mysql_real_escape_string(reason,bEscape[2]);
format(GlobalQuery1, sizeof(GlobalQuery1), "INSERT INTO Bans (`Banid`,`Name`,`IP`,`UnbanDate`,`Reason`) VALUES (%d,'%s','%s',%d,'%s')",TempBans[s][Banid],bEscape[0],bEscape[1],TempBans[s][UnbanDate],bEscape[2]);
printf(GlobalQuery1);
mysql_query(GlobalQuery1);