SA-MP Forums Archive
GameText color bug? - 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)
+--- Thread: GameText color bug? (/showthread.php?tid=593167)



GameText color bug? - xXmAn40100Xx - 02.11.2015

I am creating on my server missions and say the rewards to the player through a GameText. Looking forward to look similar to the Story Mode mission passed screen. Then, I found this out:

pawn Код:
GameTextForPlayer(playerid, "~x~ЎMision completada!~n~~w~$Test~n~Respeto +Test", 3000, 0);
Leads to:



The white square is what I am talking about.

It seems like the brown color (~x~) it's buggy, or at least for me. Also, inputting the brown color (which is {CC9900} from this page) will make it brown, but it shows the color input code.



pawn Код:
GameTextForPlayer(playerid, "{CC9900}ЎMision completada!~n~~w~$Test~n~Respeto +Test", 3000, 0);



Respuesta: GameText color bug? - xXmAn40100Xx - 08.11.2015

Bump..


Re: GameText color bug? - Sh4d0w2 - 08.11.2015

PHP код:
GameTextForPlayer(playerid"{A52A2A}ЎMision completada!~n~~w~$Test~n~Respeto +Test"30000); 



Re: GameText color bug? - Ritzy2K - 08.11.2015

Quote:
Originally Posted by Sh4d0w2
Посмотреть сообщение
PHP код:
GameTextForPlayer(playerid"{A52A2A}ЎMision completada!~n~~w~$Test~n~Respeto +Test"30000); 
Color embedding cant be there in gametext...colors are invluded through '~'... For example for red use ~r~this is red.


Re: GameText color bug? - Vince - 08.11.2015

Style 0 is this color by default. You don't need a color code. Besides, I believe ~x~ is not even a valid code.


Re: GameText color bug? - Ritzy2K - 08.11.2015

~n~ New line
~r~ Red
~g~ Green
~b~ Blue
~w~ White
~y~ Yellow
~p~ Purple
~l~ Black (lower case L)
~h~ Turn text color lighter (used too much will make your text white, doesn't work on black)


Respuesta: Re: GameText color bug? - xXmAn40100Xx - 08.11.2015

Quote:
Originally Posted by Vince
Посмотреть сообщение
Style 0 is this color by default. You don't need a color code. Besides, I believe ~x~ is not even a valid code.
Gonna try that.

EDIT: Wow man, I'm dumb. Thanks +repped .