• 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] Syntax Error: "Comparing two variables of different primitive types (except real a...

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

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.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
change itemUpgAcidCannon to Integer

@The_Reborn_Devil: I changed my mind, I do hate you, I hate everyone these days
 
Status
Not open for further replies.
Top