[HELP] With color in Dialogs
#1

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:
Код:
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","");
But i don't know how to make it.
Could someone help me ? Pleas.
Thanks for all answers.
Reply


Messages In This Thread
[HELP] With color in Dialogs - by David91 - 05.01.2011, 15:06
Re: [HELP] With color in Dialogs - by David91 - 06.01.2011, 14:12
Re: [HELP] With color in Dialogs - by _rAped - 06.01.2011, 14:15
Re: [HELP] With color in Dialogs - by David91 - 06.01.2011, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)