Quote:
Originally Posted by Faisal_khan
Well you will have to create a callback:
pawn Код:
forward LoadAccount(playerid); public LoadAccount(playerid) { new row, field, money; cache_get_data(row, field, db); if(rows == 1) { cache_get_field_content_int(0,"Money", money, db); } }
And your query:
pawn Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM playerdata WHERE username = '%e' LIMIT 1", pInfo[playerid][pName]); mysql_tquery(mysql, query, "LoadAccount", "i", playerid);
|
thats the problem.
i want to fetch that without a callback :X.