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

Im trying to load a SetPlayerColor, Color from SQL.


Everytime it loads, it comes out black.


pawn Код:
new string[128];
                    format(string, sizeof(string), "TEAM COLOR CHANGED TO %s",tData[1][tColor]);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    SetPlayerColor(playerid, tData[1][tColor]);
Loading color

pawn Код:
mysql_fetch_field_row(tData[i][tColor],"tColor");

and it loads perfectly fine in the console


Код:
[01:14:36] Team Loaded:  (1) Los Santos Militia - 0x2E8B57AA
[01:14:36] Team Loaded:  (2) Los Santos Police Department - 0x0000BBAA
[01:14:36] Team Loaded:  (3) Bad Boys Society - 0x9370DBFF
[01:14:36] Team Loaded:  (4) Market Bloc'C Crips - 0x4682B4FF
[01:14:36] Team Loaded:  (5) Los Santos Vagos - 0xFFFF00FF
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: 1 Guest(s)