Macro Error

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Macro Error

Post by Zxeses » Tue Oct 07, 2003 6:43 pm

I've been working on updating a macro, and I've run into a snag, perhaps someone could shed some light on it:


old way:

Code: Select all

#define REPORTTRG "/tell Me"
REPORTTRG $char(class) is ready!
new way:

Code: Select all

sub main
   /declare REPORTTRG global
   /varset REPORTTRG "/tell Me"
   @REPORTTRG $char(class) is ready!
/return
I get a errer: Couldnt parse @REPORTTRG $char(class) is ready!

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Post by MacroFiend » Tue Oct 07, 2003 7:07 pm

I think you still want to do that as a #define like the old way. REPORTTRG is a constant and not really a variable.