View Single Post
  #1  
Old 09-08-2005, 11:29 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Multidimensional array problem

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?
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.

Last edited by Silent; 09-08-2005 at 11:45 PM..
Reply With Quote