Interesting.
This does NOT work:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
new GuiWindowCtrl("Debug") {
this.testFunc = function () {
echo("Sup?");
};
this.testFunc();
}
}
This works...
PHP Code:
//#CLIENTSIDE
function onCreated()
{
new GuiWindowCtrl("Debug") {
this.testFunc = public function () {
echo("Sup?");
};
this.testFunc();
}
}
... but still gives the error GraalScript: Function Debug.testFunc not found in script of Weapon Ziro/Debug
This works...
PHP Code:
//#CLIENTSIDE
function onCreated()
{
this.testFunc = public function () {
echo("Sup?");
};
this.testFunc();
}
... but still gives the error GraalScript: Function testFunc not found in script of Weapon Ziro/Debug
This works...
PHP Code:
//#CLIENTSIDE
function onCreated()
{
this.testFunc = function () {
echo("Sup?");
};
this.testFunc();
}
... without giving an error.
