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
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Mon Dec 11, 2006 7:20 pm   

bug with if statements relating to unmatching parens
 
make an alias with this in it,
#if ((%ismember( @abc, @abclist) < 10) and (@boost > .5)) {boost}
it gives an unmatched paren error, however if you change .5 to 1 it works.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Dec 11, 2006 7:25 pm   
 
Works if you change it to 0.5 too. I'm guessing CMUD doesn't like not having the leading 0.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Dec 11, 2006 7:46 pm   
 
Correct. Because the "." character is also used for stuff like speedwalking, you need the leading 0. for floating point values right now. It's possible that I can change this in the future if it doesn't make the scripting grammer ambiguous to the parser.
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