Colored Chat
#1

If you do

SendClientMessage(playerid, -1, "BlahBlahBlah");

Without defining or setting a color,
what happens?
Reply
#2

Server may crash.
Reply
#3

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?
Reply
#4

search wiki.sa-mp.com

and damn... just means I have to go back through 30k lines finding every format(string, sizeof(string) ...
Reply
#5

It will set the text color to white if you use -1
Reply
#6

oh okay then that just mean i dont have to go through 30k lines just to fin... AH YOU KNOW WHAT...
Reply
#7

That's why it's wise to use #define colors :P
Reply
#8

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...
Reply
#9

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);
Reply
#10

mhm.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)