0127: Unexpected mission label in function

Compiler found a mission start label inside a function body:

DEFINE MISSION 1 AT @mission1

function foo
:mission1 // Unexpected mission label mission1 in function foo
end

Possible solutions:

  • give the label a unique name:

DEFINE MISSION 1 AT @mission1

function foo
:label
end
  • check that the function body ends before the mission label:

DEFINE MISSION 1 AT @mission1

function foo
end

:mission1

Last updated