Warcraft III resources & community, 2003–2006 · archived

Jass typo?

6 posts
#1

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
#2
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.
#3
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
#4
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.
#5
hey man thanks alot! stupid converting to text thing makes it poopy, thats right i said it
#6
Glad I could help.