• 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] Need help with two small errors

Status
Not open for further replies.
Level 12
Joined
Apr 29, 2005
Messages
999
I began using JASS a few days ago and I got two small but strange problems.
Don't care about the variables. I just didn't wrote the rest of the code here.

Command:
set CV_Lightnings[CV_Lightning_Number] = GetLastCreatedLightningBJ()

Error message:
Invalid argument type (integer)

I don't understand what is wrong.

Command:
set CV_Affect_Unit[CV_Affect_Number] = GetRandomSubGroup(1, GetUnitsInRangeOfLocMatching(CV_Radius, CV_Target_Point, And IsUnitAliveBJ(GetEnumUnit) , And IsUnitEnemy(GetEnumUnit, And GetOwningPlayer(CV_Caster)), (IsUnitInGroup(GetEnumUnit)==false)))

Error message:
Expected '('

I can't see there is a 'C' missing.


Can someone tell me how to fix this?
 
Level 7
Joined
May 6, 2005
Messages
390
As for the first thing i guess you're using a global... Put udg_ in front of its name...

And for the second thing remove the And's..

If this is wrong I apologise, haven't looked very close at your code...

http://www.wc3jass.com The Jass Vault - worlds #1 Jass site.
 
Status
Not open for further replies.
Top