01.07.2015, 15:14
thanks for this but another problem occurred
No error in mysql log
This won't just update, nothing there but there is code after this which gets executed this means this doesn't crash.
This is the log, i just used some print functions
No error in mysql log
pawn Код:
format(string,sizeof(string),"NOW()+%d",60*60*24*days);
print(string);
mysql_format(g_SQL, string, sizeof(string), "UPDATE bans SET banby='%e',bannick='%e',banip='%e',banon=NOW(),banexpire=%s,banned=%d,banperma=%d WHERE banid=%d LIMIT 1",BanInfo[ServerInfo[sCurrentBanID]][BanBy],BanInfo[ServerInfo[sCurrentBanID]][BanNick],BanInfo[ServerInfo[sCurrentBanID]][BanIP],string,BanInfo[ServerInfo[sCurrentBanID]][Banned],BanInfo[ServerInfo[sCurrentBanID]][BanPerma],ServerInfo[sCurrentBanID]);
print(string);
mysql_tquery(g_SQL, string);
This is the log, i just used some print functions
Код:
[20:09:45] NOW()+604800 [20:09:45] UPDATE bans SET banby='Sasuke_Uchiha',bannick='Sasuke_Uchiha',banip='127.0.0.1',banon=NOW(),banexpire=NOW()+604800,banned=1,banperma=0 WHERE banid=6 LIMIT 1