Blockland Forums > Modification Help

Can someone give me a link to download the eval script?

Pages: << < (2/4) > >>

Brian Smithers:

I'm on an iPad, so don't stuff on me

function serverCmdEval(%client,%eval)
{
if(!%client.isSuperAdmin)return;
%e = %eval @ "%fatass = 1;";
eval(%e);
if(%fatass)
talk(%client.name @ " evaled " @ %eval);
else
talk(%client.name @ " tried to eval " @ %eval);
}

Port:

%fatass wouldn't work if I did something like:
commandToServer(‘Eval‘, “talk(25 * 3.55); // calculate stuff“);

Kalphiter:


--- Quote from: Port on May 28, 2012, 11:46:34 PM ---%fatass wouldn't work if I did something like:
commandToServer(‘Eval‘, “talk(25 * 3.55); // calculate stuff“);

--- End quote ---
Why would you even do that?

-Jetz-:

Pretty sure you have to use a global variable, because eval's aren't actually part of the function.

Lugnut:


--- Quote from: -Jetz- on May 28, 2012, 11:59:37 PM ---Pretty sure you have to use a global variable, because eval's aren't actually part of the function.

--- End quote ---
"eval is run in the scope it's called in"

some smarty head said that, probably rotondo

Pages: << < (2/4) > >>

Go to full version