View Single Post
  #54  
Old 04-30-2009, 12:28 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by napo_p2p View Post
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.

__________________
Quote:
Reply With Quote