02.12.2013, 05:14
Im trying to load a SetPlayerColor, Color from SQL.
Everytime it loads, it comes out black.
Loading color
and it loads perfectly fine in the console
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]);
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