JASS Error

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,763
function SetCheck takes ability a returns nothing
if ( not ( a == 'ANab' ) ) then

says

Comparing two variables of different primitive types is not allowed.

How do i fix this? lol. i just want to check if the ability is this specific ability
 
Erm. remove the solved tag because i misunderstood what you said. That function doesn't work for my needs. I need to get an ability variable's rawcode. Is that so hard..
 
Why are you using ability type anyway? Ability codes are integers. Why does your function take ability? I always use integers, never ability type.

The base trigger is GUI and im using the function to set some variables based on what the ability is I guess u can reset this as solved because cant i use GetSpellAbilityId() as the integer in GUI?
 
Just like to get Raw ID for Items and Units from the Object Editor
  • Custom script: set udg_IntegerVariable = udg_YourItem
This is to get the Raw ID of Item from the Object Editor.

  • Custom script: set udg_IntegerVariable = udg_YourUnit
This is to get the Raw ID of Unit from the Object Editor.
 
Status
Not open for further replies.
Back
Top