02.07.2015, 12:19
pawn Код:
new unbanon=gettime()+BanInfo[ServerInfo[sCurrentBanID]][BanExpire];
mysql_format(g_SQL, string, sizeof(string),
"UPDATE bans SET banby='%e',bannick='%e', banip='%e',banexpire=%d, banned=%d, banperma=%d, bandate=NOW() WHERE banid=%d LIMIT 1",
BanInfo[ServerInfo[sCurrentBanID]][BanBy],
BanInfo[ServerInfo[sCurrentBanID]][BanNick],
BanInfo[ServerInfo[sCurrentBanID]][BanIP],
unbanon,
BanInfo[ServerInfo[sCurrentBanID]][Banned],
BanInfo[ServerInfo[sCurrentBanID]][BanPerma],
ServerInfo[sCurrentBanID]);
Tried it setting banexpire type as timestamp and bigint both way it won't work