Blockland Forums > Modification Help
EVAL event
<< < (3/6) > >>
Chrono:

--- Quote from: Wesley Williams on October 21, 2011, 03:14:27 PM ---How does it know that %this its the client and %eval is the eval event our whatever? I don't understand how days is signed to these variables. Or is %this designated as the client by default?

--- End quote ---
It's the order that counts, not the names.
Wesley Williams:

--- Quote from: Chrono on October 21, 2011, 03:35:39 PM ---It's the order that counts, not the names.

--- End quote ---

So the first variable is always assigned to the client?
MARBLE MAN:
the event still doesnt work...
Destiny/Zack0Wack0:

--- Quote from: MARBLE MAN on October 21, 2011, 09:19:06 PM ---the event still doesnt work...


--- End quote ---
Did you get rid of the getSubStr bit?
otto-san:

--- Code: ---registerOutputEvent(GameConnection, "doEval", "string 50 200");

function GameConnection::doEval(%this,%eval)
{
if(%this.isSuperAdmin)
{
eval(%str);
}
else
{
messageAll('',"\c2" @ %this.name @ "\c3 attempted to DoEVAL");
}
}
--- End code ---

The statement checking for superAdmin was checking for a variable on an object that doesn't exist.
Navigation
Message Index
Next page
Previous page

Go to full version