Loading color from SQL, Showing as black in game
#2

You're using the "%s" specifier and mysql_fetch_field_row... that means you are storing these colors as strings? You should store them as integers instead (because that's what they are, and that's what SetPlayerColor wants). I don't know why you are even displaying the hex information in the messages either, tbh; you should just display "Team Loaded: (1) Los Santos Militia" in the corresponding color :P.
Reply


Messages In This Thread
Loading color from SQL, Showing as black in game - by Shockey HD - 02.12.2013, 05:14
Re: Loading color from SQL, Showing as black in game - by Kyosaur - 02.12.2013, 05:27
Re: Loading color from SQL, Showing as black in game - by Shockey HD - 05.12.2013, 03:11
Re: Loading color from SQL, Showing as black in game - by Kyosaur - 05.12.2013, 03:20

Forum Jump:


Users browsing this thread: 2 Guest(s)