Blockland Forums > Modification Help
Allowing spaces in serverCmd variables.
Pages: (1/1)
otto-san:
Yeah. Never tried this before, never needed to.
It's probably something obvious, but could someone explain it to me anyways?
ZSNO:
make multiple variables
EX:
--- Code: ---function serverCmdRawr(%client,%worda,%wordB,%wordC,%wordD)
{
echo(%worda SPC %wordB SPC %wordC SPC %wordD);
}
--- End code ---
otto-san:
--- Quote from: ZSNO on July 02, 2010, 09:57:32 PM ---make multiple variables
EX:
--- Code: ---function serverCmdRawr(%client,%worda,%wordB,%wordC,%wordD)
{
echo(%worda SPC %wordB SPC %wordC SPC %wordD);
}
--- End code ---
--- End quote ---
I'm pretty sure there's a way to do it by setting a maximum amount of letters and then checking the letters within that range.
Would something like this work:
%text = getSubStr(getSubStr(%text), 0, 120);
I'm a bit skeptical, though.
Amade:
The way ZSNO posted is the only way there is.
otto-san:
--- Quote from: Amade on July 02, 2010, 10:28:07 PM ---The way ZSNO posted is the only way there is.
--- End quote ---
Interesting.
Pages: (1/1)