08.12.2014, 15:09
There is some way to get cache fields result and sscanf it to an enum?
Like i was doing on R6 using mysql_store_result + retrieve row then sscanf all recieved data for enum... Or i have to do it manually?
Ex:
Like i was doing on R6 using mysql_store_result + retrieve row then sscanf all recieved data for enum... Or i have to do it manually?
Ex:
Quote:
enum Data { name[24], pass[32], money } new PlayerInfo[MAX_PLAYERS][Data]; on query execute: format: "SELECT * FROM `users` WHERE NAME = 'n0minal'; then send mysql query, store data and retrieve row use sscanf(query, "all formats for enum here", PlayerInfo[playerid]); Is possible with cache or i have to do like: PlayerInfo[playerid][name] = cache_get_content(bla bla bla bla); |