/newif syntax question

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

GeoffreyF67
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Nov 04, 2003 6:07 pm

/newif syntax question

Post by GeoffreyF67 » Sat May 01, 2004 3:51 pm

Any idea why this doesn't work? I get the error "Could not find command to execute" when I run it.

Code: Select all

sub main
  /declare a0 int local

  /newif (${Defined[a0]} {
     /ECHO @a0
  }
/return

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat May 01, 2004 3:52 pm

because you forgot the closing parenthesis

have fun
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

GeoffreyF67
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Nov 04, 2003 6:07 pm

Post by GeoffreyF67 » Sat May 01, 2004 3:53 pm

SHIT! DOH! Been looking at that for 15 minutes and didn't see that. Thanks!

Jerle69
a hill giant
a hill giant
Posts: 263
Joined: Wed Apr 28, 2004 3:26 pm

Post by Jerle69 » Sat May 01, 2004 10:56 pm

And now that your past your closed paren you may wonder why the echo statement prints @a0 instead of it's contents... try /echo ${a0} and read about the recent MQ2datavars.
--Jerle

GeoffreyF67
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Nov 04, 2003 6:07 pm

Post by GeoffreyF67 » Sat May 01, 2004 11:57 pm

Yeah I saw that thanks!

gruefood
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Mar 27, 2004 6:31 pm

Post by gruefood » Sun May 02, 2004 12:15 am

Might as well change the /newif to /if since they are same thing now anyway.

GF