При сохранении жалуется на эти две строки:
hook PolarProjectionBJ PP
hook GetUnitsInRangeOfLocMatching GUR
А вот сами функции:
private function PP takes location source, real dist, real angle returns nothing
        call CatchLocation(source)
    endfunction

    private function GUR takes real radius, location l, boolexpr filter returns nothing
        call CatchLocation(l)
    endfunction
Как бы исправить всю эту беду?

Принятый ответ

Как то не могу вдуплить, как исправить.
private function PP takes location source, real dist, real angle returns nothing
        call CatchLocation(source)
    endfunction
    
    private function CU takes integer count, integer unitId, player p, location l, real face returns nothing
        call CatchLocation(l)
    endfunction
    
    private function IPO takes unit k, string order, location l returns nothing
        call CatchLocation(l)
    endfunction
    
    private function SUP takes unit who, location l returns nothing
        call CatchLocation(l)
    endfunction
    
    private function SUF takes unit who, location l, real dur returns nothing
        call CatchLocation(l)
    endfunction
    
    private function GUR takes real radius, location l, boolexpr filter returns nothing
        call CatchLocation(l)
    endfunction
    
    private function CUF takes integer count, integer unitId, player whichPlayer, location loc, location lookAt returns nothing
        call CatchLocation(loc)
        call CatchLocation(lookAt)
    endfunction
    
    hook PolarProjectionBJ PP
    hook CreateNUnitsAtLoc CU
    hook CreateNUnitsAtLocFacingLocBJ CUF
    hook IssuePointOrderLocBJ IPO
    hook SetUnitPositionLoc SUP
    hook SetUnitFacingToFaceLocTimed SUF
    hook GetUnitsInRangeOfLocMatching GUR

    hook RemoveLocation ReleaseLocation
hook CatchLocation PP, так что ли будет?
Теперь нативку не находит CatchLocation
Всё, нашёл проблему, была подключена библиотека all.j ,после отключения всё компилится нормально
0
28
6 лет назад
Отредактирован PT153
0
Читал это?
hook 'nativefunc' 'func'
hook нужен для выполнения некоторых действий, когда вызывается нативка. При этом аргументы функции func должны совпадать с аргументами nativefunc.
P. S.: не делайте так:
function onRemoval takes unit u returns nothing
	call RemoveUnit(u)
endfunction

hook RemoveUnit onRemoval
0
20
6 лет назад
0
Как то не могу вдуплить, как исправить.
private function PP takes location source, real dist, real angle returns nothing
        call CatchLocation(source)
    endfunction
    
    private function CU takes integer count, integer unitId, player p, location l, real face returns nothing
        call CatchLocation(l)
    endfunction
    
    private function IPO takes unit k, string order, location l returns nothing
        call CatchLocation(l)
    endfunction
    
    private function SUP takes unit who, location l returns nothing
        call CatchLocation(l)
    endfunction
    
    private function SUF takes unit who, location l, real dur returns nothing
        call CatchLocation(l)
    endfunction
    
    private function GUR takes real radius, location l, boolexpr filter returns nothing
        call CatchLocation(l)
    endfunction
    
    private function CUF takes integer count, integer unitId, player whichPlayer, location loc, location lookAt returns nothing
        call CatchLocation(loc)
        call CatchLocation(lookAt)
    endfunction
    
    hook PolarProjectionBJ PP
    hook CreateNUnitsAtLoc CU
    hook CreateNUnitsAtLocFacingLocBJ CUF
    hook IssuePointOrderLocBJ IPO
    hook SetUnitPositionLoc SUP
    hook SetUnitFacingToFaceLocTimed SUF
    hook GetUnitsInRangeOfLocMatching GUR

    hook RemoveLocation ReleaseLocation
hook CatchLocation PP, так что ли будет?
Теперь нативку не находит CatchLocation
Всё, нашёл проблему, была подключена библиотека all.j ,после отключения всё компилится нормально
Принятый ответ
Чтобы оставить комментарий, пожалуйста, войдите на сайт.