Mysql Trying 3 cases
#3

thanks for this but another problem occurred
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 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
Код:
[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
Reply


Messages In This Thread
Mysql Trying 3 cases - by AroseKhanNiazi - 01.07.2015, 12:55
Re: Mysql Trying 3 cases - by Suicidal.Banana - 01.07.2015, 13:08
Re: Mysql Trying 3 cases - by AroseKhanNiazi - 01.07.2015, 15:14
Re: Mysql Trying 3 cases - by Prokill911 - 01.07.2015, 15:41
Re: Mysql Trying 3 cases - by Suicidal.Banana - 01.07.2015, 16:32
Re: Mysql Trying 3 cases - by AroseKhanNiazi - 01.07.2015, 18:29
Re: Mysql Trying 3 cases - by Suicidal.Banana - 01.07.2015, 19:04
Re: Mysql Trying 3 cases - by AroseKhanNiazi - 01.07.2015, 19:41
Re: Mysql Trying 3 cases - by Suicidal.Banana - 01.07.2015, 21:41
Re: Mysql Trying 3 cases - by AroseKhanNiazi - 02.07.2015, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)