Posts: 737
Threads: 338
Joined: Jan 2013
Hi, i have some questions.
When i load player data, i have do about 7 mysql_store_result. ofcourse i do mysql_free_result. But, if some player will spawn at the same time, can crash server, because too much store result is called?
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
I don't quite know why you're using mysql_store_result() 7 times. That's just utterly pointless. You should be doing a loop like while(mysql_fetch_row_format(string, "|")) and using sscanf to extract the data if you aren't using threaded queries (which I know you're not due to the functions you're using).
Switching to threaded queries makes everything 20x easier in my opinion, plus they're a bit faster since they have the caching function!
Posts: 737
Threads: 338
Joined: Jan 2013
I use debian-6 OS. Don't care what OS is?
Posts: 737
Threads: 338
Joined: Jan 2013
I have a lot of thins to load, and i can't it store in one line..
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
If you need to resort to "hacks" to get things working then you're doing something seriously wrong.
Posts: 737
Threads: 338
Joined: Jan 2013
How to possible, to load data from mysqldatabase, with one mysql_store_result, when i have about 200 things, to load? because i use a lot of loading, because i want to load a lot of things.