# Errors

{% hint style="info" %}
When you have an error message in Skript, they're usually pretty intuitive, and if you read it you can usually understand the error and how to fix it.
{% endhint %}

{% hint style="warning" %}
This page covers only the most common types of errors, more niche errors can be found on the [Other Errors page](/syntask/issues/errors/other-errors.md).
{% endhint %}

***

## Syntax errors

If your error message starts with "Can't understand", that means you have a syntax error. Syntax errors occur when you haven't written a line correctly. Fortunately, they're really quite simple to fix; all you have to do is scan through that line for little mistakes. Unfortunately, these mistakes can be easy to overlook.

{% hint style="info" %}
**Don't know what syntax is?**\
Refer to the [Syntax page](/syntask/fundamentals/syntax.md).

The correct syntax will be showcased on the documentation. For links to the documentation, see the [Documentation & Wiki. page](/syntask/resources/documentation-and-wikis.md).
{% endhint %}

If your syntax is flawless but you still get a syntax error, you may not have installed an addon needed for an effect, expression, or condition.

***

## Indentation errors

Indentation errors are the easiest errors to fix. You should only encounter issues with indentation if you haven't yet learned how indentation works or you copy-pasted code from elsewhere. It's likely just a typo and you can re-indent a line.

{% hint style="info" %}
See the [Indentation page](/syntask/fundamentals/indentation.md) to learn how indentation works.
{% endhint %}

***

## Logic errors

If you don't have an error message, yet your code still doesn't function as intended, that means you have a logic error. These are the peskiest errors; they don't come with handy error messages and are usually only noticeable when your code doesn't run as intended.

Logic errors occur when you overlooked something while writing code, hence the logic doesn't flow properly. The script is running exactly as it was coded to do, it's just that what you intended and what you actually wrote differ.

{% hint style="info" %}
To find logic errors, the best method is debugging. See the [Debugging page](/syntask/issues/debugging.md) to learn how and why to debug your code.
{% endhint %}


---

# Agent Instructions: 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://x8ight.gitbook.io/syntask/issues/errors.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.
