
12-10-2006, 04:49 PM
|
|
¯\(º_o)/¯
|
 |
Join Date: Sep 2006
Location: Norway
Posts: 2,815
|
|
Quote:
Originally Posted by contiga
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  |
|
|
|