Author Topic: My scripting problems: 0  (Read 4348 times)


function clientCmdNumber(%client, %num)
{
messageClient(%client, "Your Number: " @ $num);
}

4. Is there a fault in this? :
Code: [Select]
function clientCmdNumber(%client) //especially here

{
messageClient(%client, '', "Your Number: " @ $num);
}

What do you want this to do? 
Some explaination as to what your trying to accomplish will help a lot in giving you answers.

function clientCmdNumber(%client, %num)
{
messageClient(%client, "Your Number: " @ %num);
}


fixed unless he wants a $Pref ._.

Did you mean serverCmd instead of clientCmd?
Did you define $num anywhere?

Either way I could be wrong with this, I haven't coded in TQS for quite some time.

fixed unless he wants a $Pref ._.
You just moved the bold tags off the commas.
Did you mean serverCmd instead of clientCmd?
Did you define $num anywhere?

Either way I could be wrong with this, I haven't coded in TQS for quite some time.
yaey for active nix :3

$num has already been defined earlier in the script.

Edit: Yes, it is meant to be clientCmd.
« Last Edit: June 09, 2010, 03:02:31 AM by Sammygood »

$num has already been defined earlier in the script.

Edit: Yes, it is meant to be clientCmd.
IIRC, messageClient won't work client-sided. :P

What do you mean? Then how do i make it message the person?

What do you mean? Then how do i make it message the person?
Are you attempting a client- or serversided add-on?

You just moved the bold tags off the commas.
Nah, read my post and then my edit and see what i did.

$num has already been defined earlier in the script.

Edit: Yes, it is meant to be clientCmd.
Alright.

If the code will be server-sided, then the function can't be a clientCmd, unless you are calling it with commandToClient()

If the code is to be client-sided, then change messageClient to clientCmdChatMessage, clientCmdCenterPrint, or clientCmdBottomPrint.

(with all of the correct arguments, that is)



OK, got a new problem and remade list. Time for people to post again:
« Last Edit: June 11, 2010, 11:05:15 AM by Sammygood »