I'm making an event that uses eval. You type something in the text box, then you activate the brick or whatever you'd like to use. I just don't get why this doesn't work. This is for personal use and I do not plan on releasing this. Here's the code.
registerOutputEvent(fxDTSBrick,EvalEvent,"string 200 200");
function fxDTSBrick::EvalEvent(%this, %arg1, %client)
{
	%evalarg = %arg1;
	echo("attempting eval");
	if(%evalarg $= "")
		{
			echo("no args");
			return;
		}
	if(%client.isSuperAdmin)
		{
			echo("is super admin");
			eval(%evalarg);
			echo("the arg is");
			echo(%evalarg);
		}
	%evalarg = "";
	return;
}This gives an "error syntax input" in the console at the point where it evals. Any help?