View Single Post
  #1  
Old 09-10-2006, 01:39 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Arrays and Player Attributes

I noticed when I was scripting something on Babylon that Proper arrays arent showing when you open the player attributes.

My example

NPC Code:

clientr.new_array = new[2][2];



Then later im doing something like

NPC Code:

function onPlayerchats() {
clientr.new_array[0][0] = "foo";
clientr.new_array[0][1] = "bar";
}



I can check the array by echoing it out and it shows properly but in RC it shows

NPC Code:

clientr.new_array="0,0","0,0"



Even when the array does not equal that (Checked and Rechecked).

Is anyone else having this problem? If so, how do I fix it? If not, can someone else check to see if they experince the same issue?

To Ziro and any others:

To clarify the npc is on the serverside, if you read correctly you can see its changing the value if I echo it to RC, but it is NOT changing it in player attributes.

It stays changed when i relog, but still, as "0,0" in rc.

Last edited by Andy0687; 09-10-2006 at 02:15 AM..
Reply With Quote