SA-MP Forums Archive
Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog (/showthread.php?tid=260514)



Dialog - Snowman12 - 09.06.2011

How can i add a player name

and a colour to a dialog


Re: Dialog - [DDC]Delight - 09.06.2011

pawn Код:
new giveplayer[MAX_PLAYER_NAME];
new string[152];

GetPlayerName(playerid, giveplayer, MAX_PLAYER_NAME);
format(string, 152, "{FFFFFF}Welcome\n{FF0000}%s\n{FFFFFF}to\n{FFFFFF}our\n{FFFFFF}Server\n{00FF00}Click on the {FFFFFF}'OK' {00FF00}Button to continue", giveplayer);

ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Welcome", string,"OK", "Cancel")

Example colour embedded.

Your Code for a code 0xFFFFFFFF
From this code you will use the 6 characs behind the 0x

So in this case FFFFFF (is for a White color)