13.06.2014, 01:52
Sure it won't save because this part specially. '%d/%d/%d %d:%d:%d', bad way to do this. you can easily get the date and time from your data base using the following steps:
now you won't update your query, it will automatically get the date and time of the day.
Try this codes if you still have problems check your mysql.logs and post them here.
now you won't update your query, it will automatically get the date and time of the day.
pawn Код:
format(query, sizeof(query), "INSERT INTO `Bans` (`Nick`, `UserIP`, `Admin`, `Reason`, `Unix`) VALUES('%e', '%s', '%s', '%s', '%d', '%d', '%d', '%s', '%d')", receivername, receiverip, sendername,, reason, 999999999999999999999999);