• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Jass typo?

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
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
 
Level 7
Joined
May 6, 2005
Messages
390
Condition(function act1) shouldn't be inside a paranthesis.

JASS:
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.
 
Level 3
Joined
Aug 28, 2005
Messages
48
nope, that dont work. and thats odd cuz i tried the jass code u know [jess][/jess] (purposly spelled wrong) and it ddnt work for me
JASS:
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
 
Level 7
Joined
May 6, 2005
Messages
390
My bad. Working script should be:

JASS:
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.
 
Status
Not open for further replies.
Top