I have a class named silent_example which is joined to the player at logon, which is as follows:
PHP Code:
function onCreated() {
echo("silent_example: Joined to " @ player.account);
player.clientr.example = new[2][2];
}
public function example_run() {
echo("silent_example: Setting array value");
player.clientr.example[1][1] = 5;
}
Basically, the "player.clientr.example[1][1] = 5;" isn't doing anything. I've also tried player.clientr.example.replace(1,{0,5}) and player.clientr.example[1].replace(1,5) - nothing seems to work.
The array is being created fine, I can add to the array fine, both echos are working - I just can't edit the values from inside that public function. Any ideas?
Edit: Uh. Okay. That line doesn't work inside the onCreated either. What the hell?