 |
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Mon Jun 03, 2002 8:45 pm
MXP bug? |
when I use #MXP command, it comes up as a syntax error in the checker. It's kind of annoying, cuz I can't check the rest of the alias/macro/trigger. Is this a bug? or is there a way to fix this, so that MXP commands are seen properly.
If this is a bug, does Zugg read the forums? or should I send a bug report to him? Thanks for the help |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Wed Jun 05, 2002 11:09 pm |
why don't you give an example and we'll take a look?
|
|
|
 |
horks Apprentice
Joined: 20 Jul 2001 Posts: 127 Location: USA
|
Posted: Fri Jun 07, 2002 11:30 pm |
#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>
The command works, just fine. When the trigger goes off, it shows "XP/GXP clock reset!!" in bold red letters on a yellow background. but in the editor, the syntax checker says it's wrong.
I've tried using quote charaters before the brackets, and the pounds, but that doesn't seem to make a difference |
|
|
 |
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Sat Jun 08, 2002 2:19 am |
The syntax checker is far from infallible. It seems to err of the side of false positives instead of allowing illegal code, however, which is decidedly better than the alternative.
If you _really_ want the error to go away, you can do something else like
#EXEC "#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>"
or
#MXP %expand( "<COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>")
Neither of which is a particularly elegant solution.
Just rest assured that your code snippet has perfect syntax even though the editor may complain.
- Charbal |
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Sat Jun 10, 2006 10:59 am |
#MXP <COLOR #FF0000 #FFFF00><B>XP/GXP clock reset!!</B></COLOR>
should be
#MXP ~<COLOR #FF0000 #FFFF00~>~<B~>XP/GXP clock reset!!~</B~>~</COLOR~> |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jun 10, 2006 11:21 pm |
Actually, you only need to quote the less-than sign. Once quoted, ZMud doesn't care or has already realized that the next greater-than sign matches to the quoted less-than sign. I think it's just something like a slightly-misplaced rule about such symbols outside of quotes or parentheses (such as an #IF condition).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|