18.07.2017, 22:56
PHP код:
mysql_format(sql, query, sizeof query, "SELECT `chat_color` FROM `user_features` WHERE `id` = %d", DB[playerid][ID]);
result = mysql_query(sql, query);
printf(query);
new getstr2[15];
cache_get_field_content(0, "chat_color", getstr2);
format(DB[playerid][ChatColor], 15, getstr2);
Message(playerid, TYPE_INFO, getstr2);
Message(playerid, TYPE_INFO, DB[playerid][ChatColor]);
cache_delete(result);
Batch file (printf), all seem to be good:
PHP код:
SELECT `chat_color` FROM `user_features` WHERE `id` = 4