26.10.2014, 04:07
If I may, I suggest you read up the tutorials about MySQL with multi-threading and caching. How you implemented it was wrong, once you do a (SELECT) query, you're supposed to send it to a callback to fetch the result in that active cache. Lastly, fetching a string result from the result set isn't done by
You have to specify the size of the variable if you're using an enum to store the string data into.
https://sampwiki.blast.hk/wiki/MySQL/R33
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_tquery
https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content
pawn Код:
HouseInfo[idx][hOwner]= cache_get_field_content(0, "Owner");
https://sampwiki.blast.hk/wiki/MySQL/R33
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_tquery
https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content