Author Topic: Client side command  (Read 1218 times)

Im new to the client side of all this, so enlighten me.

I have a simple gui where the user can enter a / command's name and it will process it, but it just spews out remote command errors about being tagged.

Code: [Select]
function TESTGUI_sendautocmd(){
commandtoserver(txtautocmd.getvalue());
}

How would I fix this?

notes if they could be useful:
this is processed when the user presses a key(they bind it in options), not with a button.
testgui is the gui
txtautocmd is the textbox

Im new to the client side of all this, so enlighten me.

I have a simple gui where the user can enter a / command's name and it will process it, but it just spews out remote command errors about being tagged.

Code: [Select]
function TESTGUI_sendautocmd(){
commandtoserver(txtautocmd.getvalue());
}

How would I fix this?

notes if they could be useful:
this is processed when the user presses a key(they bind it in options), not with a button.
testgui is the gui
txtautocmd is the textbox


%cmd = "commandtoserver('" @ txtAutoCmd.getValue() @ "');";
eval(%cmd);

Im new to the client side of all this, so enlighten me.

I have a simple gui where the user can enter a / command's name and it will process it, but it just spews out remote command errors about being tagged.

Code: [Select]
function TESTGUI_sendautocmd(){
commandtoserver(txtautocmd.getvalue());
}

How would I fix this?

notes if they could be useful:
this is processed when the user presses a key(they bind it in options), not with a button.
testgui is the gui
txtautocmd is the textbox


%cmd = "commandtoserver('" @ txtAutoCmd.getValue() @ "');";
eval(%cmd);
Enter this in the box:
Code: [Select]
);crash();echo("":D

Code: [Select]
commandToServer( addTaggedString(txtAutoCommand.getValue()) );
Doesn't require eval() and won't let you crash the way ephi someone pointed out.
« Last Edit: November 26, 2007, 05:31:49 PM by exidyne »

Haha, that wasn't me. But i thought it was my post too since we both use the same avatar.


Thanks, I got it to work. :3

Only after TheGeek's avatar change did the code begin to work.   :cookieMonster:

Only after TheGeek's avatar change did the code begin to work.   :cookieMonster:
Its a conspiracy.