Page 1 of 1
/declare failed
Posted: Thu Apr 29, 2004 12:59 pm
by Pax
Code: Select all
Sub Cast(SpellName,Item)
/if (!${Defined[CastGiveUpTime]}) /declare CastGiveUpTime timer
/if (!${Defined${Item}}) /declare Item Local
i get the error /declare 'Item' failed. Name already in use.
i havent declared if before and there is no global /declares anywhere, i can for the life of me not see whats wrong

Re: /declare failed
Posted: Thu Apr 29, 2004 1:07 pm
by iluvseq
${Item} is a top level object. You won't be able to have a user variable ${Item} (or ${Spawn} or ${Me} etc....)
Check out:
http://macroquest2.com/phpBB2/viewtopic.php?t=6022
Anything listed as a Top Level Object is "reserved" and unavailable as a user variable.