Okey, i tryed it but where is my error ?
PHP Code:
public Action:CmdTest(client, args)
{
if (g_bIsTest[ client ] == 1)
{
new BaseDate;
CheckDate(client, BaseDate);
PrintToChat(client, "\x05%t \x01> \x05%t Days left (In unixtime): %i", "Mod", "activated", BaseDate);
}
else
{
PrintToChat(client, "\x05%t \x01> \x05%t", "Mod", "not activated");
PrintToChat(client, "\x05%t \x01> \x05%t", "Mod", "buy link");
}
return Plugin_Handled;
}
CheckDate(client, BaseDate)
{
decl String:query[255];
Format(query, sizeof(query), "SELECT last_date FROM users WHERE last_date = '%i'", BaseDate);
SQL_TQuery(Database, T_CheckDate, query, client);
}
public T_CheckDate(Handle:owner, Handle:hndl, const String:error[], any:client)
{
if (hndl == INVALID_HANDLE)
{
LogToFile(logFile, "%s.", error);
}
}