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 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
 


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 11:27 AM.


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