Problem with SendClientMessage - 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: Problem with SendClientMessage (
/showthread.php?tid=524556)
Problem with SendClientMessage -
Dom7364 - 07.07.2014
Hello all!
I have a problem here with my SendClientMessage:
I wanted, that the welcome message is like this:
"Welcome to SevenAngels!" --> "Welcome to" with white color text and "Seven Angels" with red color text.
In my gamemode --> SendClientMessage(playerid,WHITE,"Welcome to {RED}SevenAngels!");
But in server it looks like: "Welcome To {RED}SevenAngels!"
What's the problem?
(Sorry for my bad english)
Re: Problem with SendClientMessage -
Brezon - 07.07.2014
You need to use the hexadecimal values instead of RED in brackets.
Re: Problem with SendClientMessage -
KayJ - 07.07.2014
Put at the top
pawn Код:
#define COL_RED "{F81414}"
Then
pawn Код:
SendClientMessage(playerid,-1,"Welcome to "COL_RED"SevenAngels!");
Then in game it will look like this:
Код:
Welcome to SevenAngels!