Blockland Forums > Modification Help
My scripting problems: 0
<< < (9/14) > >>
Crysist:

function ServerCmdAdd(%client, %a1, %a2)

{
%aanswer = %a1 + %a2;
messageClient(%client, '', %a1 @ " add " @ %a2 @ " = " @ %aanswer);
}
@ signs between variable and the quotes. Do this for all of them.
Placid:

--- Quote from: Crysist on June 06, 2010, 03:50:48 PM ---@ signs between variable and the quotes. Do this for all of them.

--- End quote ---
aa i'm stupid

Also, i think you might need the %a1 and %a2 before the %client.. :s
Crysist:

--- Quote from: Placid on June 06, 2010, 06:58:23 PM ---aa i'm stupid

Also, i think you might need the %a1 and %a2 before the %client.. :s

--- End quote ---
In a servercmd, the first variable is always the client if I'm not to rusted up in the head.
Placid:

--- Quote from: Crysist on June 06, 2010, 07:59:59 PM ---In a servercmd, the first variable is always the client if I'm not to rusted up in the head.

--- End quote ---
alrighty. I'm not that experienced with scripting, so I just try to learn from others. Thanks for the clarification.
Sammygood:
Got it working.
Navigation
Message Index
Next page
Previous page

Go to full version