 |
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: 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. |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
 |
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: 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?
|
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
 |
|
|
|