Query doesn't seem to work
#1

Tried loading the server MOTD and just can't get it working.

pawn Код:
stock InitializeServer()
{
    new Cache:result = mysql_query(MySQL_Connection, "SELECT * FROM `server` WHERE id = '1'");
    cache_get_field_content(0, "servermotd", ServerMOTD);
    cache_get_field_content(0, "setby", ServerMOTDby);
    cache_delete(result);
    return 1;
}
Checked multiple times, initializeserver is indeed being called.
Tried printing (debugging) and printed everything.
Tried printing the MOTD itself: empty.
Reply


Messages In This Thread
Query doesn't seem to work - by Jimmy0wns - 23.03.2015, 13:29
Re: Query doesn't seem to work - by Misiur - 23.03.2015, 13:52
Re: Query doesn't seem to work - by Jimmy0wns - 23.03.2015, 14:06
Re: Query doesn't seem to work - by Konstantinos - 23.03.2015, 14:12
Re: Query doesn't seem to work - by Jimmy0wns - 23.03.2015, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)