Author Topic: A question about commands  (Read 787 times)

I'm a very new person to torquescript.
I need a command for example if I say
/say Man Hello world!
It would say in the chat,
Man: Hello world!, and can put more than two words in a message.
« Last Edit: June 13, 2015, 09:37:19 PM by Victory »

function servercmdSay(%name, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p)
{
     if(!%client.isAdmin) return;

     messageAll('',"\c3" @ %name @ "\c6:" SPC %a SPC %b SPC %c SPC %d SPC %e SPC %f SPC %g SPC %h SPC %i SPC %j SPC %k SPC %l SPC %m SPC %n SPC %o SPC %p @"");
}

here u go (belongs in suggestions + requests unless u need help w/ coding like a syntax error problem)
« Last Edit: June 13, 2015, 10:54:46 PM by Hawt »


i get the same error and i can't find where i went wrong :(

You're missing a comma. Also, use trim() after you concatenate those to remove the extra spaces.

You're missing a comma. Also, use trim() after you concatenate those to remove the extra spaces.
fuq im blind, fixed

I'm still getting the same error?

I'm still getting the same error?
restart blockland before you try again and make sure the characters are actually there properly

also:
if(!%client.isAdmin = 1) return;
should be
if(!%client.isAdmin) return;