Problem solved
can someone help me?
I just started to use Jass and cant find my mistake
JASS:
function JumpJass_Actions takes nothing returns nothing
local unit caster = GetSpellAbilityUnit()
local location start_position = GetUnitLoc(caster)
local location ziel_position = GetSpellTargetLoc()
local real x_diff = GetLocationX(start_position) - GetLocationX(ziel_position)
local real y_diff = GetLocationY(start_position) - GetLocationY(ziel_position)
set x_diff = Betrag(x_diff)
set y_diff = Betrag(y_diff)
local real temp = x_diff // SYNTAX ERROR
local real factor = SquareRoot(temp)/200 //UNDECLARED VARIABLE: factor
call DamageUnit(GetOwningPlayer(caster), factor, caster)
set udg_Jumpgate_Ziel[GetConvertedPlayerId(GetOwningPlayer(caster))] = GetSpellTargetLoc()
set udg_Jumpgate_Unit[GetConvertedPlayerId(GetOwningPlayer(caster))] = CreateUnitAtLoc(GetOwningPlayer(caster), 'e001', start_position, 0.00)
endfunction
can someone help me?
I just started to use Jass and cant find my mistake
Last edited: