Adding Color to 'SendPlayerFormattedText'
#1

So i've been trying to add Color to the text thats sent to then playter when hes typed a command,

i've defined the color as ' COLOR_RED '

I'm new to scripting so help me out.

My Code line is this:
Код:
SendPlayerFormattedText(playerid,COLOR_RED,"Welcome To .....",0);
I always get a error about arguments(2), anyone can help me out?
Reply
#2

COLOR_RED should be 0xFF0000FF.
pawn Код:
#define COLOR_RED 0xFF0000FF
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
COLOR_RED should be 0xFF0000FF.
pawn Код:
#define COLOR_RED 0xFF0000FF
I have it defined already, its just when i try compile after adding that 'COLOR_RED' statement into the line of coding with 'SendPlayerFormattedText' i get a error..
Reply
#4

Show us how you define it.
Reply
#5

Resolved-

Close please.
Reply
#6

I want to know what the problem was before closing it. (first result on ******, could be helpful to others with the same error.) Thanks!
Reply
#7

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
I want to know what the problem was before closing it. (first result on ******, could be helpful to others with the same error.) Thanks!
SendPlayerFormattedText change to SendClientMessage
Reply
#8

SendPlayerFormattedText is old, It's SendClientMessage now..it was SendPlayerFormattedText at 2011 lol.
Reply
#9

Thanks a lot! I am still pretty new at this. I get an argument mismatch, should it still be

Код:
SendClientMessage(playerid, "message", 0)
with the ,0?

Edit: I got it working by removing the argument ", 0"

But thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)