Cokemonkey11
Spell Reviewer
- Joined
- May 9, 2006
- Messages
- 3,575
I'm in the process of converting some triggers in a map from GUI to jass and, without changing (much), JNGP returns a syntax error:
"Comparing two variables of different primitive types (except real and integer) is not allowed."
Here's the line:
However I understand sometimes syntax checker is incorrect so I'm just curious on what I or perhaps blizzard did wrong here.
Also note that the map can save (compiles) with no problems.
Also don't point out the redundancy in if (not(, I need to work on that still.
"Comparing two variables of different primitive types (except real and integer) is not allowed."
Here's the line:
JASS:
if ( not ( GetItemTypeId(UnitItemInSlot(GetSpellAbilityUnit(), 1)) != itemUpgAcidCannon[bj_forLoopAIndex] ) ) then
However I understand sometimes syntax checker is incorrect so I'm just curious on what I or perhaps blizzard did wrong here.
Also note that the map can save (compiles) with no problems.
Also don't point out the redundancy in if (not(, I need to work on that still.