|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Mon Aug 16, 2004 3:43 pm
Syntax Error |
I have a very complicated quest searching alias for my MUD, in which this line is listed. It used to be accepted by the syntax checker in previous versions, but in 7.05, zMUD barks at this. I've messed around with adding brackets and parenthesis and quotes, etc etc etc, but to no avail. Any idea how I could fix this..?
#if (%numitems(@questlist_match) < 1) {#say No quests found.} {#forall @questlist_match {#mxp <send "quest %lower(%i)">%i</send>}} ^this is where it complains
It complains with or without the quotations around "quest %lower(%i)", but the MXP command requires the notationary quotes anyway.
Thank you for your time, folks. |
|
_________________ Fat Tony |
|
|
|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Mon Aug 16, 2004 3:44 pm |
hrm, my ^ carrot didn't show up in the same spot of course - the error complains at just below the "quest ... part.
Again, thank you. |
|
_________________ Fat Tony |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Aug 17, 2004 12:52 am |
Quote the <'s with ~
#mxp ~<send "quest %lower(%i)">%i~</send> |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Tue Aug 17, 2004 8:44 pm |
The ~< isn't needed for #MXP commands, while they are for #SHOW or #ECHO commands.
The syntax error it's giving is because it's not expecting the double-quotes to be there. This is only an error only in the Settings Editor's syntax checker, but works correctly in practice.
I believe I've bugged it on this website (Support -> Bug Reports at the top of this page), but you may want to just to make sure it's logged. |
|
_________________ .geniusclown |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Aug 17, 2004 11:01 pm |
Ahem have you tested this genius clown cause I use Mxp Alot and my answer is tested. Using ~ will stop the syntax error.
according to the help files <'s are supposed to be escaped when using #MXP obviously they are not either that or the syntax checker thinks they are not so ya have to escape them yourself. |
|
|
|
|
|