Blockland Forums > Modification Help
serverCmd with spaces?
<< < (3/3)
Destiny/Zack0Wack0:

--- Quote from: otto-san on June 13, 2011, 01:02:33 AM ---That's right, isn't it?

--- End quote ---
%text will only ever be "help" because if you typed "/help help jobs" it would set %text to "help" and set the next argument to "jobs".
otto-san:

--- Quote from: Destiny/Zack0Wack0 on June 13, 2011, 01:23:26 AM ---%text will only ever be "help" because if you typed "/help help jobs" it would set %text to "help" and set the next argument to "jobs".

--- End quote ---
Why did I type "That's right, isn't it?"?

He must've thought that because of serverCmdMessageSent.
Placid:

--- Quote from: Destiny/Zack0Wack0 on June 13, 2011, 01:00:52 AM ---That won't even work, spaces in slash commands are automatically used as new arguments.

--- End quote ---
wow, didn't know that. so it's not possible to use like, a %msg to get the rest of the "arguments" (what he was trying to do) without assigning it specifically to the words?
otto-san:
Yeah.
Chrono:

--- Quote from: Placid on June 13, 2011, 08:55:59 AM ---wow, didn't know that. so it's not possible to use like, a %msg to get the rest of the "arguments" (what he was trying to do) without assigning it specifically to the words?

--- End quote ---
If the command is called via / commands, then every word is a new argument.

However, commands called otherwise (e.g., typing in a normal message calls messageSent) can send multiple words in a single argument. These will require a client sided GUI or script.
Navigation
Message Index
Previous page

Go to full version