Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Arrays and Player Attributes (https://forums.graalonline.com/forums/showthread.php?t=68646)

Andy0687 09-10-2006 01:39 AM

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.

xXziroXx 09-10-2006 01:58 AM

Maybe you are trying to set clientr.arrayname on clientside?

ApothiX 09-11-2006 04:05 PM

This is a known bug, the attributes aren't updated, but the server does read the arrays like it is supposed to.


All times are GMT +2. The time now is 01:12 PM.

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