Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-07-2006, 04:25 AM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
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...
Reply With Quote
  #2  
Old 06-07-2006, 12:08 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
If you do clientr.itm[0] = {5,9} then it will work correctly, but it is true that this should be fixed sometime.

Last edited by Admins; 06-07-2006 at 03:49 PM..
Reply With Quote
  #3  
Old 06-07-2006, 12:16 PM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
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?

Last edited by SilentOne1988; 06-07-2006 at 10:27 PM..
Reply With Quote
  #4  
Old 06-08-2006, 02:55 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
[QUOTE=SilentOne1988]
NPC Code:
triggeraction(0,0,"serverside","WtfTest");


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

Reply With Quote
  #5  
Old 06-08-2006, 11:14 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
triggerserver("gui",name,"") to be exact
Reply With Quote
  #6  
Old 06-09-2006, 11:59 PM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
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?
Reply With Quote
Reply


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 05:42 PM.


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