Author Topic: EVAL event  (Read 1939 times)


You're late.
i'd assumed that he would have updated the OP with a more recent code


the sad thing is i actually did read the thread before i posted that

edit:
Just a note to OP, getSubStr has three parameters.

sourceString startCharacter endCharacter


It basically returns the characters in sourceString from startCharacter to endCharacter.

so if i did echo(getSubStr("Woah! That's pretty neat.", 0, 4));, it'd echo "Woah!".
« Last Edit: October 21, 2011, 11:22:24 PM by otto-san »

Doesnt allow anyone to use doEval

Because slash commands don't do %client.command(%text);, they do serverCmdCommand(%client, %text);. That needs to be a serverCmd.

Because slash commands don't do %client.command(%text);, they do serverCmdCommand(%client, %text);. That needs to be a serverCmd.
Its an event....?




That's probably the problem.

The problem is that, at the start, he said he wanted it only super admin, but now he wants it for everyone.
How is it a problem if he registers the event before the actual script?

He's registering it before the command is made, although that doesn't seem to be the problem. The problem is: He is using %client.isSuperAdmin when he should be using %this.isSuperAdmin.

He's registering it before the command is made, although that doesn't seem to be the problem. The problem is: He is using %client.isSuperAdmin when he should be using %this.isSuperAdmin.

Yes, but then we fixed it in later posts.



I made posts after that.
You said that it doesn't seem to be the problem. I was just telling you that it's definitely not the problem.

The event also doesn't seems to work. Im trying to fix it.

BTW, don't forgot if you use it as a Event then symbols like semi-colon gets cleared.
So you have to re-add the ; after closing the Event GUI. Else it won't work.
« Last Edit: October 22, 2011, 05:44:49 AM by Cajetan »