View Single Post
  #11  
Old 12-20-2011, 11:51 PM
Alpho Alpho is offline
Registered User
Alpho's Avatar
Join Date: Dec 2011
Location: California, USA
Posts: 80
Alpho will become famous soon enough
Oh thanks, I see that now. This works:

PHP Code:
function onCreated() {
  
this.acc_Graal756204 = 4;
  
  echo(
this.("acc_Graal756204"));
} 
how do you suppose I can get the 'player' object, 'in sight' ?



Edit: Got it to work
PHP Code:

function Set(pl) {
  
this.acc_Graal756204 = 4;
  echo(
this.("acc_"@pl));
}

function 
onActionServerSide() {
  if (
params[0] == "test") {
    
Set(params[1]);
  }
}

//#CLIENTSIDE
function onCreated() {
  
triggerserver("gui", name, "test", player.account);
} 

Last edited by Alpho; 12-20-2011 at 11:57 PM.. Reason: Got it to work
Reply With Quote