View Single Post
  #3  
Old 12-10-2006, 04:49 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by contiga View Post
PHP Code:
public function addArc( arcname) {
  
obj = new TStaticVar();
  
obj.loadVars( "bladiebla/blabla/file.arc");
  
obj.arcnames.add( arcname); // mess a bitwith this ofcourse
  
obj.account = player.account;
  
obj.saveVars( "bladiebla/blabla/file.arc", 0);
} 
Then make sure the player is joined to this, so put it in a joined class or so..
And do player.addArc( arcname); (eventually add an ammount param)
Thanks, I'll try this
__________________
Reply With Quote