Posts: 325
Threads: 5
Joined: Jun 2017
My face now is like: "What the hell..."
Where you "query" the database?
The code you gived is more than useless...
Posts: 273
Threads: 35
Joined: Sep 2012
Reputation:
0
i am talking about the code, the query works fine. (when i try it other way around i get this "581034239")
Edit: and nothing is useless 10MIN, everything here has a meaning.
Posts: 325
Threads: 5
Joined: Jun 2017
The query is not working (you said that it inputs 0 in mysql table)... Also you don't need sscanf... Also read
What is the difference in representing colours this way #ffffff and 0xffffff?
Also the query should be like:
format(query,sizeof(query),"INSERT INTO colors SET group_color = %d", groupinfo[gruid][color])
E:Vince was faster than me
Posts: 273
Threads: 35
Joined: Sep 2012
Reputation:
0
thanks vince, and thanks to you too for replying 10min.
Edit: should've used inttohex -_-