Author Topic: Need help with color of messageall now...  (Read 1647 times)

ok i always have the problem where i can't seem to get the color thing right and it make it so the addons doesn't work
messageall('',"\c3SPC %client.getPlayerName() @ ":" "\c2SPC %message");
What am i doing wrong here
« Last Edit: April 26, 2011, 12:09:32 AM by swollow »

echo("Eval:" SPC %client.getPlayerName() @ ":" SPC %message);

echo("Eval:" SPC %client.getPlayerName() @ ":" SPC %message);
thanks for helping I'll lock after I make sure it works

Also, I'm pretty sure this does nothing, but normally, the argument is %text, not %message.

Also, I'm pretty sure this does nothing, but normally, the argument is %text, not %message.
Appreciate the help

ok i always have the problem where i can't seem to get the color thing right and it make it so the addons doesn't work
messageall('',"\c3SPC %client.getPlayerName() @ ":" "\c2SPC %message");
What am i doing wrong here


messageall("\c3" @ %client.getPlayerName() @ ":\c2" SPC %message);

messageall("\c3" @ %client.getPlayerName() @ ":\c2" SPC %message);
Didn't work

Learn the basics of using strings.  Here is a quick tutorial:
you cannot do "words" "more words" because the game doesnt know how to combine them.  Between these you need one of the following:
 - @ (combines)
 - SPC (space)
 - TAB (next tab)
 - the one for next line I forget
These will not do anything if you place them inside of the quotes

This also applies to variables
"string" %variable
"string" SPC %variable

If you do have two consecutive strings, such as "hi my name" SPC "is bob", you can always do "hi my name is bob" because there is no reason to make it more complicated than you need to



messageall("\c3" @ %client.getPlayerName() @ ":\c2" SPC %message);

Double toast, just noticed this:
message all has two arguments for some reason, i believe
messageall("", "your message here.");

messageall("\c3" @ %client.getPlayerName() @ ":\c2" SPC %message);
wait what do I have wrong here?

messageall("\c3" @ %client.getPlayerName() @ ":\c2" SPC %message);
wait what do I have wrong here?
you got the string syntax right.
but you need another argument for messageAll:

messageAll('', "\c3" @......

you got the string syntax right.
but you need another argument for messageAll:

messageAll('', "\c3" @......

oh thank you really appreciate it, I always forget that part for some reason.
« Last Edit: April 26, 2011, 09:46:17 PM by swollow »