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
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Fri Dec 01, 2006 7:59 pm   

[1.17] unmatched parenthesis
 
I'm having a weird thing happen in cmud. in an alias I have the following.

Code:
#IF (%ismember(%lower(%1),%lower(@blah)) & @combat & !@logging & @autolog) {irrelevant}

and I get unmatched parenthesis for it, at the 60th char which is the !@logging. Now weird thing is if I remove the ! the error goes away and it compiles fine...? !@ works fine in other settings and variables.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Fri Dec 01, 2006 8:10 pm   
 
& is now wrong. Use && instead. If you use | for OR, you need to use || as well (and see the help file "changes for zMUD users" for more of this kind of thing). Compiles fine for me after that.

I think Zugg mentioned there's a bug with the error reporting at the moment. It had (one of) the place(s) right at least.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Fri Dec 01, 2006 9:07 pm   
 
hmmm it doesn't convert the other & and doesn't generally give me an error with those when I import my MUD function nor aliases.? it complains about the paranthesis though?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Fri Dec 01, 2006 9:17 pm   
 
Well, the help says & should be && now and it compiles fine for me once I change those. So I guess that's the error.

The fact that's complaining about parenthesis is a bug, I believe. I remember it being mentioned.
_________________
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: Sat Dec 02, 2006 12:05 am   
 
Some of the error messages are currently screwed up. In any case, if you ran the Compatibility Report when you imported your zMUD file, it would have told you about the & -> && change. There is no way to autoconvert scripts...you just have to use the Compability Report to locate these issues and edit them yourself.
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