Mysql house system
#10

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
pawn Код:
HouseInfo[idx][hOwner]= cache_get_field_content(0, "Owner");
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
Reply


Messages In This Thread
Mysql house system - by jeffery30162 - 16.10.2014, 22:39
Re: Mysql house system - by Eth - 17.10.2014, 00:46
Re: Mysql house system - by jeffery30162 - 17.10.2014, 01:12
Re: Mysql house system - by austin070 - 17.10.2014, 01:37
Re: Mysql house system - by TakeiT - 17.10.2014, 02:08
Re: Mysql house system - by jeffery30162 - 17.10.2014, 03:55
Re: Mysql house system - by jeffery30162 - 19.10.2014, 21:25
Re: Mysql house system - by jeffery30162 - 21.10.2014, 15:54
Re: Mysql house system - by jeffery30162 - 25.10.2014, 21:21
Re: Mysql house system - by Neil. - 26.10.2014, 04:07

Forum Jump:


Users browsing this thread: 1 Guest(s)