> For the complete documentation index, see [llms.txt](https://docs.sannybuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sannybuilder.com/troubleshooting/errors/0065.md).

# 0065: External script label not found

The compiler can't find the starting [label](/language/data-types.md#labels) of an external script.

**Possible solutions:** make sure that each external script declared in the header exists in the source file. Either add a missed script, or remove the declaration:

```
DEFINE MISSIONS 1
DEFINE MISSION 0 AT @MISSION_0

DEFINE EXTERNAL_SCRIPTS 2
DEFINE SCRIPT TEST AT @SCRIPT
DEFINE SCRIPT TEST2 AT @SCRIPT2

DEFINE UNKNOWN_EMPTY_SEGMENT 0
DEFINE UNKNOWN_THREADS_MEMORY 0

:MAIN

:MISSION_0

:SCRIPT

// error, SCRIPT2 not found
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sannybuilder.com/troubleshooting/errors/0065.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
