27.09.2017, 16:24
Err, I'll look up for explanation about tquery, cleaning cache ... later on!
I'm not sure if I get this good, but it should work like this?
I've tried to put SetPlayerSkin in chache_num_rows too. And yes I'm 100% sure script fatches player's skin. I've checked it.
I'm not sure if I get this good, but it should work like this?
Код:
new query[70]; new _tempskin; mysql_format(g_SQL, query, sizeof query, "SELECT `skin` FROM `players` WHERE `id` = %d LIMIT 1", Player[playerid][ID]); if(cache_num_rows()) { cache_get_value_int(0, "skin", Player[playerid][Skin]); } SetPlayerSkin(playerid, _tempskin);