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 0temp.ay 64temp.ay++ ){
    
this.meowarray[temp.ay] = {};
    for( 
temp.ax 0temp.ax 64temp.ax++ ){
      
this.meowarraytemp.ay ][ temp.ax ] = 1;
      if( 
temp.ax == && temp.ay == ) echo( this.meowarraytemp.ay ][ temp.ax ] );      
    }
  } 
__________________

Coming soon (Hopefully:P)
Reply With Quote