[Bug] SendPlayerMessageToAll, Colour Embedding - 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: [Bug] SendPlayerMessageToAll, Colour Embedding (
/showthread.php?tid=199107)
[Bug] SendPlayerMessageToAll, Colour Embedding -
CodeRae - 14.12.2010
SendPlayerMessageToAll and SendPlayerMessageToPlayer lose colour embedding when returning to a new line. There doesn't appear to be a problem in the script. Has anyone else experienced this?
Regards, CodeRae.
Re: [Bug] SendPlayerMessageToAll, Colour Embedding -
Mean - 14.12.2010
Use SendClientMessageToAll.
Re: [Bug] SendPlayerMessageToAll, Colour Embedding -
Wennicke - 14.12.2010
Quote:
Originally Posted by Mean
Use SendClientMessageToAll.
|
As you may see, he already done that, but it's changing color anyway
Re: [Bug] SendPlayerMessageToAll, Colour Embedding -
Kalcor - 14.12.2010
A player message is a way for the server to 'fake' a player chat message. Player chat messages aren't really meant to contain embedded colours. This might be fixed at some point, although I'd recommend you use client messages (server -> client). The only real difference is that client messages aren't automatically wrapped over lines. You could easily script this yourself though.