Posts: 541
Threads: 60
Joined: Jul 2009
Reputation:
0
Hello, I saw there is a way how you can show player in one line text with more than one colour.
Example: "[white]Hello[/white] [/red] Roko_foko [red] [/blue]how are you?[blue]"
I guess they use SendClientMessage, but I'm not sure. Hot to do that?
Thanks in advance.
Posts: 1,239
Threads: 16
Joined: Mar 2011
Reputation:
0
It's basicly very simple. For ordinary pawno codes you use this format "0x[RED colour][blue color][green color][contrast or something]". Here you use "{[red][blue][green]}"
Posts: 541
Threads: 60
Joined: Jul 2009
Reputation:
0
Okay, is there any limit of the sting length inside SendClientMessage if it has colors inside?
Becuase it doesn't want to show message with 146 cell's(includeing string terminator)- doesn't even appear the message, but 145 is showing perfectly.
Posts: 1,239
Threads: 16
Joined: Mar 2011
Reputation:
0
Earlier in SA-MP on some Servers you could get crash if message.command is too long so I think they have added limit.