Author Topic: Simple addition script wont work  (Read 717 times)

I'm trying to learn TS, and for some reason, this refuses to work:
Quote
function servercmdadd(%a, %b) {
talk(%a SPC "plus" %b SPC "equals" %a + %b); }
Why isn't this working?

You forgot a space between "equals" and %a + %b

e.g. "equals" SPC %a+%b

1. The first argument of any server command is always %client.
2. You didn't put a connector between "plus" and %b.
3. You didn't put a connector between "equals" and %a.

ohhh.
thanks! that was dumb lol