ReWeTo
Компетентный
Всем привет. Как правильно оформить авто разбан?
Вот мой вариант:
Но в таком случае ошибка:
Вот мой вариант:
PHP:
stock Unbanned()
{
new unban[128]; new sql[128];
new utime = gettime();
format(unban, sizeof(unban),"SELECT FROM_UNIXTIME(%i,'%%d.%%m.%%Y'), '%s'", utime);
format(sql, sizeof(sql),"DELETE FROM `Banned` WHERE `DateUnban` LIKE '%s'", unban);
mysql_query(sql);
mysql_free_result();
}
PHP:
[MySQL] Error (0): Failed to exeute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d.%m.%Y'), '''' at line 1.
