Adding Color to 'SendPlayerFormattedText' -
Lower - 18.08.2011
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?
Re: Adding Color to 'SendPlayerFormattedText' -
=WoR=Varth - 18.08.2011
COLOR_RED should be 0xFF0000FF.
pawn Код:
#define COLOR_RED 0xFF0000FF
Re: Adding Color to 'SendPlayerFormattedText' -
Lower - 18.08.2011
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..
Re: Adding Color to 'SendPlayerFormattedText' -
=WoR=Varth - 18.08.2011
Show us how you define it.
Re: Adding Color to 'SendPlayerFormattedText' -
Lower - 18.08.2011
Resolved-
Close please.
Re: Adding Color to 'SendPlayerFormattedText' -
denNorske - 28.03.2012
I want to know what the problem was before closing it. (first result on ******, could be helpful to others with the same error.) Thanks!
Re: Adding Color to 'SendPlayerFormattedText' -
IstuntmanI - 28.03.2012
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
Re: Adding Color to 'SendPlayerFormattedText' -
The__ - 28.03.2012
SendPlayerFormattedText is old, It's SendClientMessage now..it was SendPlayerFormattedText at 2011 lol.
Re: Adding Color to 'SendPlayerFormattedText' -
denNorske - 29.03.2012
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!