Dialogs
#1

Hello.
I have made a dialog based login/register system in my gamemode.
Now im asking; how can i change the text color in the dialog box?
The dialog i want to change it in, is like this:
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "<SERVERNAVN> Account", "Wrong password\nEnter your password", "Login", "Quit");
I want the "<SERVERNAVN> Account" to be yellow, the "Wrong password" to be red and the "Enter your password" to stay as default.

Hope someone can answer me. Thank you.
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{F3FF02}<SERVERNAVN> Account", "{F81414}Wrong password\n{FFFFFF}Enter your password", "Login", "Quit");
Also check this: https://sampwiki.blast.hk/wiki/Colour_Embedding
Reply
#3

Thanks man xD
Reply
#4

Quote:
Originally Posted by sim_sima
Посмотреть сообщение
Thanks man xD
No Problem.
Reply
#5

Here you can find the color codes:

http://www.colorschemer.com/online.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)