Surely, it requires you casting or format specifier.
Hack:
PHP Code:
#define SQL_STATEMENT_NOT_EXPIRED(%1) FormatInline("DurationMinutes != 0 AND TimestampGiven + 60 * DurationMinutes < %i", %1)
char[] FormatInline(const char[] format, any ...)
{
static char buffer[1024];
VFormat(buffer, sizeof(buffer), format, 2);
return buffer;
}
public void OnPluginStart()
{
PrintToServer(SQL_STATEMENT_NOT_EXPIRED(GetTime()));
}
__________________