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);
}