Blockland Forums > Modification Help
Help with a code?
(1/1)
Bot:

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

--- End code ---

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?
Red_Guy:
all / commands use a space between their arguments (theres no way to change this that I know of).

so try the following:

--- Code: ---function servercmdui(%client, %text1, %text2, %text3, %text4)
{
messageAll('', "<color:FFFFFF>"@ %client.getPlayerName() SPC %text1 SPC %text2 SPC %text3 SPC %text4);
}

--- End code ---
Bot:

--- Quote from: Red_Guy on June 22, 2010, 09:13:55 PM ---all / commands use a space between their arguments (theres no way to change this that I know of).

so try the following:

--- Code: ---function servercmdui(%client, %text1, %text2, %text3, %text4)
{
messageAll('', "<color:FFFFFF>"@ %client.getPlayerName() SPC %text1 SPC %text2 SPC %text3 SPC %text4);
}

--- End code ---

--- End quote ---
Thanks that worked.
Navigation
Message Index

Go to full version