someone tell me how to fix an error in this code?
Error: private outside library/scope definition
JASS:
function LOD takes nothing returns boolean
return GetSpellAbilityId() == 039;A01D039;
endfunction
//*****************************************
private function checkgroup takes nothing returns boolean
return IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) and IsUnitAliveBJ(GetFilterUnit()) == true
endfunction
function actLOD takes nothing returns nothing
local unit u = GetTriggerUnit()
local location p = GetSpellTargetLoc()
local group g = CreateGroup()
local unit enum
local real dame = ( ( 400.00 + ( 100.00 * I2R(GetUnitAbilityLevelSwapped(039;A01D039;, u)) ) ) + ( 3.50 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, u, true)) ) )
call CreateNUnitsAtLoc(1, 039;h002039;, GetOwningPlayer(u), p, bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1, 039;BTLF039;, GetLastCreatedUnit())
call TriggerSleepAction(0.5)
call SetUnitPositionLoc(u, p)
call CreateEffectCircle(u, 300.00, 6, "Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl", 2)
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateEffectLoc(p, "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl", 2.00)
call DestroyEffect(GetLastCreatedEffectBJ())
call GroupEnumUnitsInRange(G, GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), 400, Condition(function checkgroup))
loop
set enum = FirstOfGroup(G)
exitwhen (enum == null)
call UnitDamageTarget(GetTriggerUnit(), enum, dame, false, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED, null)
call GroupRemoveUnit(enum)
endloop
call GroupClear(G)
set enum = null
call DestroyGroup(G)
call RemoveLocation(p)
set u = null
endfunction
//****************************************************************************************************
function IniTrg_LeapOfDeath takes nothing returns nothing
set gg_trg_LeapOfDeath = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_LeapOfDeath, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_LeapOfDeath, Condition(function LOD))
call TriggerAddAction(gg_trg_LOD, function actLOD)
endfunction
Error: private outside library/scope definition