- 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?
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?