Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   wierd multidimensional array bug with clientr strings. (https://forums.graalonline.com/forums/showthread.php?t=66521)

SilentOne1988 06-07-2006 04:25 AM

wierd multidimensional array bug with clientr strings.
 
NPC Code:

function onActionserverside(){
clientr.itm = {{5,2},{"test"}};
clientr.itm[0][1] = 9;
echo(clientr.itm[0][1] @"|||"@ clientr.itm);
}

//#CLIENTSIDE

function onCreated(){
triggeraction(0,0,"serverside","WtfTest");
}



I get these results:
9|||"5,2","test,"

The string is never modified, but if I access clientr.itm[0][1], it claims its whatever I changed it to.... Very annoying, I can't really finish my item system without this working...

Admins 06-07-2006 12:08 PM

If you do clientr.itm[0] = {5,9} then it will work correctly, but it is true that this should be fixed sometime.

SilentOne1988 06-07-2006 12:16 PM

Quote:

Originally Posted by Stefan
If you do clientr.itm[0] = {5,9} then it will work correctly, but it is true that this should be fixed sometime.

Ah... alright, i'll just use that then, thanks Stefan.

Any ETA on that fix?

KuJi 06-08-2006 02:55 AM

[QUOTE=SilentOne1988]
NPC Code:
triggeraction(0,0,"serverside","WtfTest");


Why are you using triggeraction still? Use this V---V
NPC Code:
triggerserver("gui","WtfTest");


Admins 06-08-2006 11:14 AM

triggerserver("gui",name,"") to be exact :)

SilentOne1988 06-09-2006 11:59 PM

KuJi got told :).

Stefan: I tried the method you listed above, clientr.itm[0] = {5,9}, and it did not work. Is there any ETA on a fix for this?


All times are GMT +2. The time now is 11:00 PM.

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