/if error

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Leffe
a ghoul
a ghoul
Posts: 86
Joined: Mon Feb 14, 2005 4:59 pm

/if error

Post by Leffe » Mon Feb 14, 2005 5:02 pm

Hi.
im realy new to this and ran in to a problem.
im trying to get a pally macro to work but gets error in the

/if n $strlen("$p0")<=0 {

what it says is: Failed to parse /if command. Expected () around the conditions.

pally.mac@63 (main): /if n $strlen("$p0")<=0 {

anyone that can help?

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 » Mon Feb 14, 2005 5:08 pm

First of all, wherever you got the syntax for that, its over a year old and is invalid. Secondly, the error means what it says, it didnt find () around your conditions. I suggest not looking in the outdated macro forum for macros, theres plenty in the non-outdated forum ;)

The correct syntax would be something more like /if (!${p0.Length}) {

However, I dont know what you're trying to do or what p0 is, etc., so I would stick to my first paragraph... dont look in the outdated macro forum
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Leffe
a ghoul
a ghoul
Posts: 86
Joined: Mon Feb 14, 2005 4:59 pm

Post by Leffe » Mon Feb 14, 2005 5:12 pm

ahh hehe

ill do that then =)

ztrike
a ghoul
a ghoul
Posts: 83
Joined: Fri Mar 26, 2004 1:17 pm
Contact:

Post by ztrike » Tue Feb 15, 2005 5:43 am

and... change &lt and &gt to < and >
Ztrike out

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:07 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:08 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:09 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:10 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:11 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:13 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:14 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:15 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:16 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:53 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: /if error

Post by xyilla » Fri Apr 11, 2025 1:54 am