attempt to call global 'blue' (a nil value)

Leon_Trotsky

Участник
Автор темы
39
2
Версия MoonLoader
.026-beta
Добрый вечер.

Код скрипта:
Lua:
if cfg.main.theme == 'blue' then blue() result = imgui.ImInt(0)
elseif cfg.main.theme == 'red' then red() result = imgui.ImInt(1)
elseif cfg.main.theme == 'brown' then brown() result = imgui.ImInt(2)
elseif cfg.main.theme == 'violet' then violet() result = imgui.ImInt(3)
elseif cfg.main.theme == 'blackred' then blackred() result = imgui.ImInt(4)
elseif cfg.main.theme == 'salat' then salat() result = imgui.ImInt(5)
elseif cfg.main.theme == 'mono' then mono() result = imgui.ImInt(6)
elseif cfg.main.theme == 'silver' then silver() result = imgui.ImInt(7)
elseif cfg.main.theme == 'darkblue' then darkblue() result = imgui.ImInt(8)
elseif cfg.main.theme == 'cherry' then cherry() result = imgui.ImInt(9)
elseif cfg.main.theme == 'darkgreen' then darkgreen() result = imgui.ImInt(10)
elseif cfg.main.theme == 'berez' then berez() result = imgui.ImInt(11)
else cfg.main.theme = 'blue' blue() result = imgui.ImInt(0)

SF:
[ML] (error) AdminTools: C:\Users\marke\Desktop\Ìîÿ ñáîðêà\moonloader\ATools.lua:9838: attempt to call global 'blue' (a nil value)
stack traceback:
    C:\Users\marke\Desktop\Ìîÿ ñáîðêà\moonloader\ATools.lua:9838: in main chunk

Как можно вылечить?