23.03.2015, 13:29
Tried loading the server MOTD and just can't get it working.
Checked multiple times, initializeserver is indeed being called.
Tried printing (debugging) and printed everything.
Tried printing the MOTD itself: empty.
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;
}
Tried printing (debugging) and printed everything.
Tried printing the MOTD itself: empty.