Thread: Array Problems
View Single Post
  #2  
Old 07-20-2007, 10:32 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
At a guess i'd say the problem is that mewoarray is only defined as an array and you're using it as a 2d array.
Try this:

PHP Code:
function onCreated(){
  
this.meowarray = { };
  for( 
temp.ay = 0; temp.ay < 64; temp.ay++ ){
    
this.meowarray[temp.ay] = {};
    for( 
temp.ax = 0; temp.ax < 64; temp.ax++ ){
      
this.meowarray[ temp.ay ][ temp.ax ] = 1;
      if( 
temp.ax == 2 && temp.ay == 3 ) echo( this.meowarray[ temp.ay ][ temp.ax ] );      
    }
  } 
__________________

Coming soon (Hopefully:P)
Reply With Quote