Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 122: | Строка 122: | ||
local tableData = loadData('User:IanComradeBot/prototypes/table.json') | local tableData = loadData('User:IanComradeBot/prototypes/table.json') | ||
local tableDataIndex = findDataById | local tableDataIndex = findDataById(tableData, tableId) | ||
if not tableDataIndex then return 'Таблица не найдена.' end | if not tableDataIndex then return 'Таблица не найдена.' end | ||
| Строка 267: | Строка 267: | ||
if not id then return 'Не указан ID.' end | if not id then return 'Не указан ID.' end | ||
local itemDataIndex = | local itemDataIndex = itemData | ||
if not itemData then return 'Не удалось загрузить данные.' end | if not itemData then return 'Не удалось загрузить данные.' end | ||