Quote:
Originally Posted by napo_p2p
That's weird. Have you tried:
PHP Code:
whatever::somefunc();
??
|
Just tried it, it only happens when you login/connect though, not when you update the script.
My above script didn't work with the trigger, however this worked fine and isn't noticable.
PHP Code:
//#CLIENTSIDE
function onCreated() {
join("whatever");
whatever::somefunc(); // the somefunc in the class would not actually be called..
this.scheduleevent(0.1, "WildEvent", ""); // so I would use a trigger..
}
function onWildEvent() {
somefunc(); // and ! would be displayed in F2
}
So I'd recommend joining serverside if you don't want to deal with the workaround above..
PHP Code:
function onCreated() {
join("whatever");
}
//#CLIENTSIDE
function onCreated() {
somefunc(); // the somefunc in the class is called.
}