Colored Chat - 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: Colored Chat (
/showthread.php?tid=245778)
Colored Chat -
Desertsoulz - 01.04.2011
If you do
SendClientMessage(playerid, -1, "BlahBlahBlah");
Without defining or setting a color,
what happens?
Re: Colored Chat -
SchurmanCQC - 01.04.2011
Server may crash.
Re: Colored Chat -
mprofitt - 01.04.2011
Quote:
Originally Posted by Desertsoulz
If you do
SendClientMessage(playerid, -1, "BlahBlahBlah");
Without defining or setting a color,
what happens?
|
Do you not know the best way to find out?
Re: Colored Chat -
Desertsoulz - 01.04.2011
search wiki.sa-mp.com
and damn... just means I have to go back through 30k lines finding every format(string, sizeof(string) ...
Re: Colored Chat -
Fj0rtizFredde - 01.04.2011
It will set the text color to white if you use -1
Re: Colored Chat -
Desertsoulz - 01.04.2011
oh okay then that just mean i dont have to go through 30k lines just to fin... AH YOU KNOW WHAT...
Re: Colored Chat -
Placebo - 01.04.2011
That's why it's wise to use #define colors :P
Re: Colored Chat -
Desertsoulz - 01.04.2011
oh no I wanted to re-arrange the coloring in the chat so i just used replace
SendClientMessage(<i, playerid, whatnot>, <COLORITWAS>, "
to
SendClientMessage(<i, playerid, whatnot>, -1, ""#<NewColor>"
Only thinking to myself.... What about the strings?
You know
SendClientMessage(<i, playerid, whatnot>, -1, string);
Cause those don't have a color anymore.
So thats why I wanted to know...
Re: Colored Chat -
Fj0rtizFredde - 01.04.2011
You mean like this?
pawn Код:
format(string, sizeof(string), "This value: {RGB COLOR HERE} %i will now go to a color.", something);
SendClientMessage(playerid, -1, string);
Re: Colored Chat -
Desertsoulz - 01.04.2011
mhm.