05.01.2011, 15:06
(
Последний раз редактировалось David91; 05.01.2011 в 17:51.
)
Hi,
At first I am sorry for my worse English (I'm Czech).
I have some problem with converting color to dialogs.
I need convert color from format 0x008000AA ( got from command GetPlayerColor(playerid); )
to format what i can use in dialogs {008000}
I think something like this:
But i don't know how to make it. 
Could someone help me ? Pleas.
Thanks for all answers.
At first I am sorry for my worse English (I'm Czech).
I have some problem with converting color to dialogs.
I need convert color from format 0x008000AA ( got from command GetPlayerColor(playerid); )
to format what i can use in dialogs {008000}
I think something like this:
Код:
stock GetPlayerColorToHex(playerid)
{
GetPlayerColor(playerid);
.
.
.
return hexcolor; //return in FF0000
}
and then in publics ...
new string[32];
format(string, sizeof(string), "Text{%x}Text in player color ", GetPlayerColorToHex(playerid));
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_MSGBOX,string,"OK","");

Could someone help me ? Pleas.
Thanks for all answers.

