The Game Event system would be great for this, I don't see how you don't see that. Your choice to use it or not.
Originally Posted by Darthye
About your code, the reason why it doesn't work is because you aren't getting the time value itself. Also make sure all your naming is correct, etc.
To simplify what I've done to the code, you could just get the count that would return 1 or 0 if a specific column has 350000 ms left. Honestly, it would probably be best to use the 'getMSTime()' function and get the difference from that old ms time to the current time when you called 'getMSTime()'
void alertServer(const char * name, int msg)
result = WorldDatabase.PQuery("SELECT `time` FROM `evento_gurubashi_lastspawn` where 'time' = 350000"); // 350000 in miliseconds = 5 minutes
Field* fields = result->Fetch();
if (fields.GetInt32() <= 350000)
sWorld->SendGlobalText("Try fix.", NULL);