19.02.2013, 01:25
Ok so wanting to set a Player color blue for example this way works fine
or
But i have the color loading from mysql which (Which looks like this 2507262) all works well as it prints "2641FE" like normal
but having issues making it the correct color for SetPlayerColor i need to know how can i make it 0x2641FE00 so it defines the correct color?
Since i can't use strings i can't find a way around it
example:
It's not even a color i'm trying to define
But this works fine
That works fine just need a way of correctly setting it for PlayerSetColor, if anyone knows how that would be great full
P.S I've tried searching the forums but getting no luck with it.
pawn Код:
#define COLOR_BLUE 0x2641FE00
SetPlayerColor(playerid,COLOR_BLUE);
pawn Код:
SetPlayerColor(playerid, 0x2641FE00);
but having issues making it the correct color for SetPlayerColor i need to know how can i make it 0x2641FE00 so it defines the correct color?
Since i can't use strings i can't find a way around it

example:
pawn Код:
SetPlayerColor(playerid,PlayerInfo[playerid][pColor]);
But this works fine
pawn Код:
format(string, sizeof(string), "This is your {%x}Color", PlayerInfo[playerid][pColor]);
SendClientMessage(playerid, COLOR_WHITE ,string);
P.S I've tried searching the forums but getting no luck with it.