Problem with SendClientMessage
#1

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)
Reply
#2

You need to use the hexadecimal values instead of RED in brackets.
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)