28.01.2015, 20:46
I'm loading colours as decimal numbers from my database and into player variables. When they connect, if their colour hasn't been set (== 0), it chooses a random colour and sets it with setplayercolor, but if their colour has been set it uses SetPlayerColor(playerid, pData[playerid][Color]). But, in-game, the chat messages show the correct colours (colours from variables), but on the player list (TAB) and on the map icons, it shows different colours.
I added two debug messages. One prints the player's colour variable after it's loaded, and the other prints the player's colour from GetPlayerColor. They both return the same value.
I added two debug messages. One prints the player's colour variable after it's loaded, and the other prints the player's colour from GetPlayerColor. They both return the same value.