Yesterday i was learning how to make the "knockback" system and i made a test map and started doing the tutorial...Then in the end of the tutorial there was that line -->call Knockback(udg_Target, udg_Distance, udg_Angle * bj_DEGTORAD, udg_Duration)<-- Then the spell didn't work..So i made a pause for few hours..Then i made few maps which were different..they were not the knockback system...even when the map doesn't have triggers variables or something else it gives mi that error..and i suddenly realized that every time i click on the "save map" button it shows me error !! Here's ony one part of the error !
function Trig_Knockback_Actions takes nothing returns nothing
set udg_Caster = GetTriggerUnit()
set udg_Target = GetSpellTargetUnit()
set udg_Distance = ( 400 + ( 100 * GetUnitAbilityLevelSwapped('A000', udg_Caster) ) )
set udg_Angle = GetUnitLoc(udg_Caster)
set udg_Duration = 2
call Knockback(udg_Target, udg_Distance, udg_Angle * bj_DEGTORAD, udg_Duration)
And that the last line is in black.
function Trig_Knockback_Actions takes nothing returns nothing
set udg_Caster = GetTriggerUnit()
set udg_Target = GetSpellTargetUnit()
set udg_Distance = ( 400 + ( 100 * GetUnitAbilityLevelSwapped('A000', udg_Caster) ) )
set udg_Angle = GetUnitLoc(udg_Caster)
set udg_Duration = 2
call Knockback(udg_Target, udg_Distance, udg_Angle * bj_DEGTORAD, udg_Duration)
And that the last line is in black.