Quote:
Originally Posted by fowlplay4
I've noticed on the clientside if you join a class clientside you can't use the functions from the class right away.
ex:
PHP Code:
//class: whatever
//#CLIENTSIDE
function somefunc() {
echo("!");
}
Then doing following..
PHP Code:
//#CLIENTSIDE
function onCreated() {
join("whatever");
somefunc(); // the somefunc in the class would not actually be called..
this.trigger("WildEvent", ""); // so I would use a trigger..
}
function onWildEvent() {
somefunc(); // and ! would be displayed in F2
}
|
That's weird. Have you tried:
PHP Code:
whatever::somefunc();
??