Author Topic: Help with a code?  (Read 578 times)

Code: [Select]
function servercmdui(%client, %text)
{
messageAll('', "<color:FFFFFF>"@ %client.getPlayerName() @ %text);
}

I am trying to make a message all script that is like

/ui Is cool.

But instead it comes out:

BotIs

Is there a screw up in the code somewhere?

all / commands use a space between their arguments (theres no way to change this that I know of).

so try the following:
Code: [Select]
function servercmdui(%client, %text1, %text2, %text3, %text4)
{
messageAll('', "<color:FFFFFF>"@ %client.getPlayerName() SPC %text1 SPC %text2 SPC %text3 SPC %text4);
}

all / commands use a space between their arguments (theres no way to change this that I know of).

so try the following:
Code: [Select]
function servercmdui(%client, %text1, %text2, %text3, %text4)
{
messageAll('', "<color:FFFFFF>"@ %client.getPlayerName() SPC %text1 SPC %text2 SPC %text3 SPC %text4);
}
Thanks that worked.