Help with int variable in /for.
Posted: Mon May 31, 2004 12:42 pm
Ok, so i have looked at countless AFK cleric macs, and just simply trying to convert my old one to MQ2 Data and this code keeps giving me an error.
There is alot more code but this is the only relavent stuff. So now out of that mac it calls autoheal out of a .inc file
I tried pasting the code into the actual cleric mac but I get the same error.
Error : /for loops must use an int variable.
Then it spews out the lines that use /for.
Code: Select all
Sub Main
/declare GroupMax int outer
/declare GroupMember int outer
:chkevent
/call autoheal
/goto :chkevent
/return
Code: Select all
Sub Autoheal
/for GroupMember 0 to ${GroupMax}
/delay 0
/if (${String["${Me.Class}"].Equal["Cleric"]}) {
/if (${Group[${GroupMember}].PctHPs}<60) {
/call IF1
}
} else {
/if (${String[${Group[${GroupMember}].Class}].NotEqual[Cleric]}) {
/if (${Group[${GroupMember}].PctHPs}<25) /call IF1
}
}
/next GroupMember
/return
Error : /for loops must use an int variable.
Then it spews out the lines that use /for.