Charapanga
New Member
- Reaction score
- 46
Well, i have made my first code in JASS(yay me) but it gives me a Syntax error...Says that it cannot convert returnsboolean into booleanexpr...
This line:
And the Function:
This line:
JASS:
call TriggerAddCondition(gg_trg_JASS_Test, function JASS_Test_Conditions)
And the Function:
JASS:
function JASS_Test_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit( ), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction