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

# 0046: Неверный синтаксис массива

[Строковые переменные](/ru/coding/data-types.md#strokovye-peremennye) (`@s`, `s$`) не могут использоваться в качестве имени [массива](/ru/coding/arrays.md) или его индексной переменной.

**Возможные решения**: используйте глобальную или локальную переменную (`$`, `@`):

```
0@s($index,1i) = 2 // ошибка
0@(s$index,1i) = 2 // ошибка
0@($index,1i) = 2 // верно
```
