> 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/0046.md).

# 0046: Invalid array syntax

[String variable](/language/data-types.md#string-variables) notation (`@s`, `s$`) can't be used anywhere in the [array syntax](/language/data-types/arrays.md#general-syntax).

**Possible solutions:** use a global or local variable (`$`, `@`):

```
0@s($index,1i) = 2 // error
0@(s$index,1i) = 2 // error
0@($index,1i) = 2 // OK
```
