Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jun 06, 2010 4:18 am   

[3.18d]BUG: #ADDITEM strips portions
 
The following should return the same thing in $TestStr, but it doesn't. It only returns the first digit, stripping the "to#". This might be tied to the %additem weirdness I noticed before, but decided to make a new post on it.

Code:
#LOCAL TestStr TestAdd
$TestStr={1to4|5to8|9to12}
#FORALL $TestStr {#ADDITEM $TestAdd {%i}}
#SAY $TestAdd


Charneus

As a side note, changing #ADDITEM $TestAdd to #SAY correctly displays 1to4, etc.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 07, 2010 5:03 pm   
 
Confirmed. I think it's the json parser thinking that it is parsing a number and then stopping when it gets to the text "to" after the number. Definitely a bug in their code, but hopefully I can fix it.

Btw, you don't need the {} around %i. That's a "zmud-ism". Just doing "#ADDITEM $TestAdd %i" is all you need.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net