11.07.2015, 20:10
When you SELECT something, you need to specify a callback, at least in the newest MySQL.
Like this...
And then under OnPlayerLoad you do stuff like storing variables etc.
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);