27.09.2017, 16:28
PHP код:
new Cache:result, query[70];
mysql_format(g_SQL, query, sizeof query, "SELECT `skin` FROM `players` WHERE `id` = %d LIMIT 1", Player[playerid][ID]);
result = mysql_query(g_SQL, query);
if(cache_num_rows())
{
cache_get_value_int(0, "skin", Player[playerid][Skin]);
SetPlayerSkin(playerid, Player[playerid][Skin]);
}
else SendClientMessage(playerid, -1, "Nothing found");
cache_delete(result);