View Single Post
  #1  
Old 06-12-2009, 06:17 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Simple board issue?

Right now I'm working on a script that requires me to be updating a board. So I'm using a series of arrays (6x6) to act as a board.
The problem is that I can't seem to be able to update it at all. I have a script which looks like this:

PHP Code:
//#CLIENTSIDE
function onFunc() {
  
board = {
    { 
00000},
    { 
00000},
    { 
00000},
    { 
00000},
    { 
00000},
    { 
00000}
  };
  
board[0][0] = 1;
  echo( 
board[0][0] ); //returns 0 ??

Is there something I need to keep in mind when editing nested arrays?
Reply With Quote