Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.