cache_get_data problem
#3

When you SELECT something, you need to specify a callback, at least in the newest MySQL.
Like this...

pawn Код:
mysql_format(MySQLHandle, query, sizeof(query), "SELECT * FROM users WHERE PlayerName = '%e' LIMIT 1", GetName(playerid));
mysql_tquery(MySQLHandle, query, "OnPlayerLoad", "i", playerid);
And then under OnPlayerLoad you do stuff like storing variables etc.
Reply


Messages In This Thread
cache_get_data problem - by zeth98 - 11.07.2015, 15:01
Re: cache_get_data problem - by zeth98 - 11.07.2015, 19:56
Re: cache_get_data problem - by Sime30 - 11.07.2015, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)