Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
Hy.
I have BlueG's lastest (R39-5) plugin, and i create a table load function in my gamemode.
If i call it in OnGameModeInit, its not load perfectly the UTF8 chars, but if i call this function from an user command, or in OnPlayerConnect mysql load characters in a good way.
I try to put this function in a timer in OnGameModeInit, but its still not working.
Please help me, i dont undestand... I call the same function, but itw once working, once not... Thanks!
Posts: 684
Threads: 122
Joined: Jul 2011
Reputation:
0
Under OnGameModeInit add mysql_debug(1); Restart the server, go to your server directory and post the content of debug.txt in here.
Posts: 684
Threads: 122
Joined: Jul 2011
Reputation:
0
In the database, Do they seem to be stored like that?
The way that it shows through the debug, that it's being called like that.
Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
Some of the datas are stored like in the debug, 'cause i am trying to solve this in a lot of differend way, but the last item, 'kуrhбz' is stored like i write. And in the debug its call'd like this, but when a i trying to store this in a varible is not working. And the worst think abaut it, its working i i am put it in a test command. But not from OnGameModeInit.
Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
Yes, i am thinking abaut it. But why its workig with command? I cant belive. Sorry for my bad english, and thanks for your help. I am trying to make a system, what checks the firts player connecting, and then load my datas from mysql.. I dont understant SAMP now.
Posts: 132
Threads: 42
Joined: Jun 2012
Reputation:
0
Ohh, in the server_log, my printf write "[03:37:10] kуrhбz", so i think the problem is in SAMP OnGameModeInit. But there is another way to load my datas without calling it in OnGameModeInit?
Posts: 969
Threads: 26
Joined: Jan 2016
Reputation:
0
By the way, Positions should be floats