47 posts joined 2005-08-28
#1 2005-12-10
Jass typo? i dont know exactly what this is but the rest of the stuff works, im gettin this error that say
Line 125: Expected '('
Line 129: Expected '('
Line 133: Expected '('
I dont know exactly what to make of this or how to fix it...
here is the line of script from which it is "expecting"
call ForGroupBJ( GetUnitsInRangeOfLocMatching(512, GetUnitLoc(GetSpellAbilityUnit()), (Condition(function act1)), stat1 ) Thats what it is for all 3 of them i think
521 posts Denmark joined 2005-05-06
#2 2005-12-10
Condition(function act1) shouldn't be inside a paranthesis.
call ForGroupBJ( GetUnitsInRangeOfLocMatching(512, GetUnitLoc(GetSpellAbilityUnit()), Condition(function act1), stat1 )And by the way your code leaks, the location aren't removed and the group aren't destroyed.
The JASS Vault - if you need more help go there.
47 posts joined 2005-08-28
#3 2005-12-10
nope, that dont work. and thats odd cuz i tried the jass code u know
(purposly spelled wrong) and it ddnt work for me
call ForGroupBJ( GetUnitsInRangeOfLocMatching(512, GetUnitLoc(GetSpellAbilityUnit()), Condition(function act1), stat1 ) Thats what i have now but it is still coming up with the same error
and what do you mean by the location isnt removed and the group isnt destroyed... im a learnin jass noobie and i need help
*Edit* hmm odd, now it works... not the script, the jass code for the message boards
521 posts Denmark joined 2005-05-06
#4 2005-12-10
My bad. Working script should be:
call ForGroupBJ( GetUnitsInRangeOfLocMatching(512, GetUnitLoc(GetSpellAbilityUnit()), Condition(function act1)), function stat1 )notice the function before the stat1 and the ( removed in front of condition.
The Jass Vault .
47 posts joined 2005-08-28
#5 2005-12-11
hey man thanks alot! stupid converting to text thing makes it poopy, thats right i said it
521 posts Denmark joined 2005-05-06
#6 2005-12-12
Glad I could help.