SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 22/07/2019, 02:15 PM   #1
MichaelScott
Little Clucker
 
Join Date: Apr 2019
Posts: 7
Reputation: 0
Default Need simple help with text colors.

So, i have these lines of code:
Code:
	new stringai[100];
	format(stringai,sizeof(stringai),"~ORANDZINE~Pirmas Deathmatch kambarys \t ~w~Zaidžia: %d",zaidziaKamb[1]);
	ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Kambariai",stringai,"Pasirinkti","Iseiti");
And i want it to change the color few times. ORANDZINE is orange and the ~w~ should be white. But in game, it just displays it without changing the color. Any help? And it is not only with dialongs it is with client messages too.
MichaelScott is offline   Reply With Quote
Old 22/07/2019, 02:36 PM   #2
YouShootIDodge
Little Clucker
 
Join Date: May 2019
Posts: 40
Reputation: 11
Default Re: Need simple help with text colors.

Hei

These ~w~ ~r~ ~b~ symbols work with only GameText and TextDraws, for Dialogs and ClientMessages you need hex colors, for example if you want the text to be half red and half white this will be the code for dialogs/client messages.

Code:
"{FF0000}This is the red text {FFFFFF} and this is the white text. "
YouShootIDodge is offline   Reply With Quote
Old 22/07/2019, 03:01 PM   #3
MichaelScott
Little Clucker
 
Join Date: Apr 2019
Posts: 7
Reputation: 0
Default Re: Need simple help with text colors.

Thanks, this really helped
MichaelScott is offline   Reply With Quote
Old 22/07/2019, 04:18 PM   #4
ZTz
Banned
 
Join Date: Aug 2018
Posts: 25
Reputation: 0
Cool Re: Need simple help with text colors.

Quote:
Originally Posted by MichaelScott View Post
Thanks, this really helped
No problem
ZTz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Name colors changing simple system! Equuuuin0X Filterscripts 5 14/05/2014 06:19 AM
Multiple colors in one text line? CesarLT Scripting Help 2 17/09/2013 06:32 PM
Rainbow colors name convert to text Maniek Scripting Help 0 13/10/2012 08:05 AM
Dialog Text Colors Passout Scripting Help 7 22/11/2011 03:57 AM
Text draw colors Cameltoe Help Archive 1 20/08/2010 05:32 PM


All times are GMT. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.