Краш скрипта

Thomasya

Известный
Автор темы
67
2
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
  4. 0.3.7-R4
Приветствую, после использования автообновления начало крашить скрипт. log будет чуть ниже


Lua:
local imgui = require 'imgui'
local key = require 'vkeys'
-- вот это надо
script_version("1.0")
local color = 0x348cb2
-- это тоже
local dlstatus = require('moonloader').download_status

local design = imgui.ImBool(false)
function imgui.OnDrawFrame()
  if design.v then
    imgui.SetNextWindowSize(imgui.ImVec2(150, 200), imgui.Cond.FirstUseEver)
    imgui.Begin('Testing update', design)
    if imgui.Button('UPDATE ME!') then
      printStringNow('Updating!', 1000)
      update()
    end
    imgui.Text("Now version "..thisScript().version)
    imgui.End()
  end
end

function update()
local fpath = os.getenv('TEMP') .. '\\testing_version.json' -- куда будет качаться наш файлик для сравнения версии
  downloadUrlToFile('https://www.dropbox.com/h?preview=adminhelp.json', fpath, function(id, status, p1, p2) -- ссылку на ваш гитхаб где есть строчки которые я ввёл в теме или любой другой сайт
    if status == dlstatus.STATUS_ENDDOWNLOADDATA then
    local f = io.open(fpath, 'r') -- открывает файл
    if f then
      local info = decodeJson(f:read('*a')) -- читает
      updatelink = info.updateurl
      if info and info.latest then
        version = tonumber(info.latest) -- переводит версию в число
        if version > tonumber(thisScript().version) then -- если версия больше чем версия установленная то...
          lua_thread.create(goupdate) -- апдейт
        else -- если меньше, то
          update = false -- не даём обновиться
          sampAddChatMessage(('[Testing]: У вас и так последняя версия! Обновление отменено'), color)
        end
      end
    end
  end
end)
end
--скачивание актуальной версии
function goupdate()
sampAddChatMessage(('[Testing]: Обнаружено обновление. AutoReload может конфликтовать. Обновляюсь...'), color)
sampAddChatMessage(('[Testing]: Текущая версия: '..thisScript().version..". Новая версия: "..version), color)
wait(300)
downloadUrlToFile(updatelink, thisScript().path, function(id3, status1, p13, p23) -- качает ваш файлик с latest version
  if status1 == dlstatus.STATUS_ENDDOWNLOADDATA then
  sampAddChatMessage(('[Testing]: Обновление завершено!'), color)
  thisScript():reload()
end
end)
end

-- ВСЁ!

function main()
  while true do
    wait(0)
    if wasKeyPressed(key.VK_X) then -- активация по нажатию клавиши X
        design.v = not design.v -- переключаем статус активности окна, не забываем про .v
    end
    imgui.Process = design.v -- теперь значение imgui.Process всегда будет задаваться в зависимости от активности основного окна
  end
end

Lua:
[16:24:37.111858] (system)    Session started.
[16:24:37.112845] (debug)    Module handle: 04600000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
[URL unfurl="true"]https://www.blast.hk/moonloader/[/URL]


[16:24:37.112845] (info)    Working directory: C:\Games\ARIZONA GAMES\bin\Arizona\moonloader
[16:24:37.112845] (debug)    FP Control: 0009001F
[16:24:37.112845] (debug)    Game: GTA SA 1.0.0.0 US
[16:24:37.112845] (system)    Installing pre-game hooks...
[16:24:37.126862] (system)    Hooks installed.
[16:24:38.487518] (debug)    Initializing opcode handler table
[16:24:38.487518] (debug)    package.path = C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?\init.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?\init.lua;.\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?\init.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?\init.luac;.\?.luac
[16:24:38.488520] (debug)    package.cpath = C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.dll;
[16:24:38.491523] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\admin.luac'...
[16:24:38.492524] (debug)    New script: 06BAFBCC
[16:24:38.591527] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\imgui_notf.lua'...
[16:24:38.592526] (debug)    New script: 06BAFA44
[16:24:38.613528] (system)    imgui_notf.lua: Loaded successfully.
[16:24:38.665533] (system)    Admin Script: Loaded successfully.
[16:24:38.665533] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Arizona Tools v1.1.lua'...
[16:24:38.665533] (debug)    New script: 06BAFD54
[16:24:38.683531] (system)    Az Tools: Loaded successfully.
[16:24:38.683531] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\AutoReboot.lua'...
[16:24:38.683531] (debug)    New script: 06BAFEDC
[16:24:38.686531] (system)    ML-AutoReboot: Loaded successfully.
[16:24:38.686531] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\A_MP-Helper.lua'...
[16:24:38.686531] (debug)    New script: 06BAF29C
[16:24:38.721533] (system)    MP Helper: Loaded successfully.
[16:24:38.722533] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\check-moonloader-updates.lua'...
[16:24:38.722533] (debug)    New script: 06BAF424
[16:24:38.727535] (system)    Check MoonLoader Updates: Loaded successfully.
[16:24:38.727535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Minecraft Health.lua'...
[16:24:38.727535] (debug)    New script: 0DFD1C2C
[16:24:38.733535] (system)    Minecraft Health.lua: Loaded successfully.
[16:24:38.733535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\reload_all.lua'...
[16:24:38.733535] (debug)    New script: 0DFD1DB4
[16:24:38.736535] (system)    ML-ReloadAll: Loaded successfully.
[16:24:38.736535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny CNN.lua'...
[16:24:38.736535] (debug)    New script: 0DFD319C
[16:24:38.753535] (system)    Script for CNN: Loaded successfully.
[16:24:38.753535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:24:38.753535] (debug)    New script: 0DFD1794
[16:24:38.781551] (system)    Script for admins: Loaded successfully.
[16:24:38.781551] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\setWeather&Time.lua'...
[16:24:38.781551] (debug)    New script: 0DFD1F3C
[16:24:38.784537] (system)    setWeather&Time: Loaded successfully.
[16:24:38.784537] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\SF Integration.lua'...
[16:24:38.784537] (debug)    New script: 0DFD34AC
[16:24:38.789537] (system)    SF Integration: Loaded successfully.
[16:24:50.881384] (system)    Installing post-load hooks...
[16:24:50.882384] (system)    Hooks installed.
[16:24:54.155584] (script)    Admin Script: Автоматическое сохранение клавиш!
[16:24:54.158583] (script)    Admin Script: {80A7E6}[Start] Запущена проверка обновления
[16:24:54.424581] (script)    Admin Script:



{80A7E6}[UPDATE] Проверка обновления пройдена. Скрипт запущен на версии №138




[16:24:54.467582] (script)    Admin Script: {80A7E6}[Start] Обновление скрипта прошло успешно.
[16:24:54.467582] (script)    Admin Script: {80A7E6}[Start] Проверка авторизации/подписки
[16:24:54.470585] (script)    Admin Script: {80A7E6}[Start] Проверка успешно прошла
[16:24:57.869787] (script)    Admin Script: {E8CD64}Успешный запуск версия: 138
[16:24:57.871788] (script)    Admin Script: {E8CD64}Запущены чекеры
[16:24:57.871788] (script)    Admin Script: {E8CD64}Скрипт готов к работе.
[16:34:45.423103] (script)    ML-AutoReboot: Reloading "Script for admins"...
[16:34:45.452104] (system)    Script for admins: Script terminated. (0DFD1794)
[16:34:45.458105] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:34:45.458105] (debug)    New script: 16F72DDC
[16:34:45.495108] (system)    Script for admins: Loaded successfully.
[16:34:46.061138] (script)    ML-AutoReboot: Reloading "Script for admins"...
[16:34:46.189145] (system)    Script for admins: Script terminated. (16F72DDC)
[16:34:46.191143] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:34:46.191143] (debug)    New script: 16F733FC

[16:34:46.214161] (system)    Script for admins: Loaded successfully.
[16:35:01.505052] (exception)    Script for admins: CJSON: Expected value but found invalid token at character 1
[16:35:01.506052] (error)    Script for admins: ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: attempt to index local 'info' (a nil value)
stack traceback:
    ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: in function <...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:470>
[16:35:01.507049] (error)    Script for admins: Script died due to an error. (16F733FC)
[16:42:32.634165] (system)    imgui_notf.lua: Script terminated. (06BAFA44)

[16:42:32.713166] (system)    Az Tools: Script terminated. (06BAFD54)
[16:42:32.715168] (system)    ML-AutoReboot: Script terminated. (06BAFEDC)
[16:42:32.716166] (system)    MP Helper: Script terminated. (06BAF29C)
[16:42:32.719166] (system)    Check MoonLoader Updates: Script terminated. (06BAF424)
[16:42:32.719166] (system)    Minecraft Health.lua: Script terminated. (0DFD1C2C)
[16:42:32.720166] (system)    ML-ReloadAll: Script terminated. (0DFD1DB4)
[16:42:32.721168] (system)    Script for CNN: Script terminated. (0DFD319C)
[16:42:32.723166] (system)    setWeather&Time: Script terminated. (0DFD1F3C)
[16:42:32.723166] (system)    SF Integration: Script terminated. (0DFD34AC)
[16:42:32.724167] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\admin.luac'...
[16:42:32.725166] (debug)    New script: 16F73A1C
[16:42:32.797169] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\imgui_notf.lua'...
[16:42:32.798170] (debug)    New script: 16F7370C
[16:42:32.810173] (system)    imgui_notf.lua: Loaded successfully.
[16:42:32.834173] (system)    Admin Script: Loaded successfully.
[16:42:32.834173] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Arizona Tools v1.1.lua'...
[16:42:32.834173] (debug)    New script: 16F72324
[16:42:32.847172] (system)    Az Tools: Loaded successfully.
[16:42:32.848174] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\AutoReboot.lua'...
[16:42:32.848174] (debug)    New script: 16F72014
[16:42:32.850172] (system)    ML-AutoReboot: Loaded successfully.
[16:42:32.850172] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\A_MP-Helper.lua'...
[16:42:32.850172] (debug)    New script: 16F72C54
[16:42:32.884176] (system)    MP Helper: Loaded successfully.
[16:42:32.884176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\check-moonloader-updates.lua'...
[16:42:32.884176] (debug)    New script: 16F724AC
[16:42:32.889176] (system)    Check MoonLoader Updates: Loaded successfully.
[16:42:32.889176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Minecraft Health.lua'...
[16:42:32.889176] (debug)    New script: 16F72634
[16:42:32.894177] (system)    Minecraft Health.lua: Loaded successfully.
[16:42:32.894177] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\reload_all.lua'...
[16:42:32.894177] (debug)    New script: 16F73BA4
[16:42:32.896176] (system)    ML-ReloadAll: Loaded successfully.
[16:42:32.896176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny CNN.lua'...
[16:42:32.896176] (debug)    New script: 16F73274
[16:42:32.914179] (system)    Script for CNN: Loaded successfully.
[16:42:32.914179] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:42:32.914179] (debug)    New script: 16F73894
[16:42:32.945179] (system)    Script for admins: Loaded successfully.
[16:42:32.945179] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\setWeather&Time.lua'...
[16:42:32.946180] (debug)    New script: 16F73D2C
[16:42:32.948180] (system)    setWeather&Time: Loaded successfully.
[16:42:32.949180] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\SF Integration.lua'...
[16:42:32.949180] (debug)    New script: 06BB0064
[16:42:32.955180] (system)    SF Integration: Loaded successfully.
Меня интересует этот фгармент

[16:35:01.505052] (exception) Script for admins: CJSON: Expected value but found invalid token at character 1
[16:35:01.506052] (error) Script for admins: ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: attempt to index local 'info' (a nil value)
stack traceback:
...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: in function <...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:470>
[16:35:01.507049] (error) Script for admins: Script died due to an error. (16F733FC)
 

БеzликиЙ

Автор темы
Проверенный
802
455
Приветствую, после использования автообновления начало крашить скрипт. log будет чуть ниже


Lua:
local imgui = require 'imgui'
local key = require 'vkeys'
-- вот это надо
script_version("1.0")
local color = 0x348cb2
-- это тоже
local dlstatus = require('moonloader').download_status

local design = imgui.ImBool(false)
function imgui.OnDrawFrame()
  if design.v then
    imgui.SetNextWindowSize(imgui.ImVec2(150, 200), imgui.Cond.FirstUseEver)
    imgui.Begin('Testing update', design)
    if imgui.Button('UPDATE ME!') then
      printStringNow('Updating!', 1000)
      update()
    end
    imgui.Text("Now version "..thisScript().version)
    imgui.End()
  end
end

function update()
local fpath = os.getenv('TEMP') .. '\\testing_version.json' -- куда будет качаться наш файлик для сравнения версии
  downloadUrlToFile('https://www.dropbox.com/h?preview=adminhelp.json', fpath, function(id, status, p1, p2) -- ссылку на ваш гитхаб где есть строчки которые я ввёл в теме или любой другой сайт
    if status == dlstatus.STATUS_ENDDOWNLOADDATA then
    local f = io.open(fpath, 'r') -- открывает файл
    if f then
      local info = decodeJson(f:read('*a')) -- читает
      updatelink = info.updateurl
      if info and info.latest then
        version = tonumber(info.latest) -- переводит версию в число
        if version > tonumber(thisScript().version) then -- если версия больше чем версия установленная то...
          lua_thread.create(goupdate) -- апдейт
        else -- если меньше, то
          update = false -- не даём обновиться
          sampAddChatMessage(('[Testing]: У вас и так последняя версия! Обновление отменено'), color)
        end
      end
    end
  end
end)
end
--скачивание актуальной версии
function goupdate()
sampAddChatMessage(('[Testing]: Обнаружено обновление. AutoReload может конфликтовать. Обновляюсь...'), color)
sampAddChatMessage(('[Testing]: Текущая версия: '..thisScript().version..". Новая версия: "..version), color)
wait(300)
downloadUrlToFile(updatelink, thisScript().path, function(id3, status1, p13, p23) -- качает ваш файлик с latest version
  if status1 == dlstatus.STATUS_ENDDOWNLOADDATA then
  sampAddChatMessage(('[Testing]: Обновление завершено!'), color)
  thisScript():reload()
end
end)
end

-- ВСЁ!

function main()
  while true do
    wait(0)
    if wasKeyPressed(key.VK_X) then -- активация по нажатию клавиши X
        design.v = not design.v -- переключаем статус активности окна, не забываем про .v
    end
    imgui.Process = design.v -- теперь значение imgui.Process всегда будет задаваться в зависимости от активности основного окна
  end
end

Lua:
[16:24:37.111858] (system)    Session started.
[16:24:37.112845] (debug)    Module handle: 04600000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
[URL unfurl="true"]https://www.blast.hk/moonloader/[/URL]


[16:24:37.112845] (info)    Working directory: C:\Games\ARIZONA GAMES\bin\Arizona\moonloader
[16:24:37.112845] (debug)    FP Control: 0009001F
[16:24:37.112845] (debug)    Game: GTA SA 1.0.0.0 US
[16:24:37.112845] (system)    Installing pre-game hooks...
[16:24:37.126862] (system)    Hooks installed.
[16:24:38.487518] (debug)    Initializing opcode handler table
[16:24:38.487518] (debug)    package.path = C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?\init.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?\init.lua;.\?.lua;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?\init.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?.luac;C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\?\init.luac;.\?.luac
[16:24:38.488520] (debug)    package.cpath = C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\lib\?.dll;
[16:24:38.491523] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\admin.luac'...
[16:24:38.492524] (debug)    New script: 06BAFBCC
[16:24:38.591527] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\imgui_notf.lua'...
[16:24:38.592526] (debug)    New script: 06BAFA44
[16:24:38.613528] (system)    imgui_notf.lua: Loaded successfully.
[16:24:38.665533] (system)    Admin Script: Loaded successfully.
[16:24:38.665533] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Arizona Tools v1.1.lua'...
[16:24:38.665533] (debug)    New script: 06BAFD54
[16:24:38.683531] (system)    Az Tools: Loaded successfully.
[16:24:38.683531] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\AutoReboot.lua'...
[16:24:38.683531] (debug)    New script: 06BAFEDC
[16:24:38.686531] (system)    ML-AutoReboot: Loaded successfully.
[16:24:38.686531] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\A_MP-Helper.lua'...
[16:24:38.686531] (debug)    New script: 06BAF29C
[16:24:38.721533] (system)    MP Helper: Loaded successfully.
[16:24:38.722533] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\check-moonloader-updates.lua'...
[16:24:38.722533] (debug)    New script: 06BAF424
[16:24:38.727535] (system)    Check MoonLoader Updates: Loaded successfully.
[16:24:38.727535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Minecraft Health.lua'...
[16:24:38.727535] (debug)    New script: 0DFD1C2C
[16:24:38.733535] (system)    Minecraft Health.lua: Loaded successfully.
[16:24:38.733535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\reload_all.lua'...
[16:24:38.733535] (debug)    New script: 0DFD1DB4
[16:24:38.736535] (system)    ML-ReloadAll: Loaded successfully.
[16:24:38.736535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny CNN.lua'...
[16:24:38.736535] (debug)    New script: 0DFD319C
[16:24:38.753535] (system)    Script for CNN: Loaded successfully.
[16:24:38.753535] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:24:38.753535] (debug)    New script: 0DFD1794
[16:24:38.781551] (system)    Script for admins: Loaded successfully.
[16:24:38.781551] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\setWeather&Time.lua'...
[16:24:38.781551] (debug)    New script: 0DFD1F3C
[16:24:38.784537] (system)    setWeather&Time: Loaded successfully.
[16:24:38.784537] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\SF Integration.lua'...
[16:24:38.784537] (debug)    New script: 0DFD34AC
[16:24:38.789537] (system)    SF Integration: Loaded successfully.
[16:24:50.881384] (system)    Installing post-load hooks...
[16:24:50.882384] (system)    Hooks installed.
[16:24:54.155584] (script)    Admin Script: Автоматическое сохранение клавиш!
[16:24:54.158583] (script)    Admin Script: {80A7E6}[Start] Запущена проверка обновления
[16:24:54.424581] (script)    Admin Script:



{80A7E6}[UPDATE] Проверка обновления пройдена. Скрипт запущен на версии №138




[16:24:54.467582] (script)    Admin Script: {80A7E6}[Start] Обновление скрипта прошло успешно.
[16:24:54.467582] (script)    Admin Script: {80A7E6}[Start] Проверка авторизации/подписки
[16:24:54.470585] (script)    Admin Script: {80A7E6}[Start] Проверка успешно прошла
[16:24:57.869787] (script)    Admin Script: {E8CD64}Успешный запуск версия: 138
[16:24:57.871788] (script)    Admin Script: {E8CD64}Запущены чекеры
[16:24:57.871788] (script)    Admin Script: {E8CD64}Скрипт готов к работе.
[16:34:45.423103] (script)    ML-AutoReboot: Reloading "Script for admins"...
[16:34:45.452104] (system)    Script for admins: Script terminated. (0DFD1794)
[16:34:45.458105] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:34:45.458105] (debug)    New script: 16F72DDC
[16:34:45.495108] (system)    Script for admins: Loaded successfully.
[16:34:46.061138] (script)    ML-AutoReboot: Reloading "Script for admins"...
[16:34:46.189145] (system)    Script for admins: Script terminated. (16F72DDC)
[16:34:46.191143] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:34:46.191143] (debug)    New script: 16F733FC

[16:34:46.214161] (system)    Script for admins: Loaded successfully.
[16:35:01.505052] (exception)    Script for admins: CJSON: Expected value but found invalid token at character 1
[16:35:01.506052] (error)    Script for admins: ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: attempt to index local 'info' (a nil value)
stack traceback:
    ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: in function <...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:470>
[16:35:01.507049] (error)    Script for admins: Script died due to an error. (16F733FC)
[16:42:32.634165] (system)    imgui_notf.lua: Script terminated. (06BAFA44)

[16:42:32.713166] (system)    Az Tools: Script terminated. (06BAFD54)
[16:42:32.715168] (system)    ML-AutoReboot: Script terminated. (06BAFEDC)
[16:42:32.716166] (system)    MP Helper: Script terminated. (06BAF29C)
[16:42:32.719166] (system)    Check MoonLoader Updates: Script terminated. (06BAF424)
[16:42:32.719166] (system)    Minecraft Health.lua: Script terminated. (0DFD1C2C)
[16:42:32.720166] (system)    ML-ReloadAll: Script terminated. (0DFD1DB4)
[16:42:32.721168] (system)    Script for CNN: Script terminated. (0DFD319C)
[16:42:32.723166] (system)    setWeather&Time: Script terminated. (0DFD1F3C)
[16:42:32.723166] (system)    SF Integration: Script terminated. (0DFD34AC)
[16:42:32.724167] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\admin.luac'...
[16:42:32.725166] (debug)    New script: 16F73A1C
[16:42:32.797169] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\imgui_notf.lua'...
[16:42:32.798170] (debug)    New script: 16F7370C
[16:42:32.810173] (system)    imgui_notf.lua: Loaded successfully.
[16:42:32.834173] (system)    Admin Script: Loaded successfully.
[16:42:32.834173] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Arizona Tools v1.1.lua'...
[16:42:32.834173] (debug)    New script: 16F72324
[16:42:32.847172] (system)    Az Tools: Loaded successfully.
[16:42:32.848174] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\AutoReboot.lua'...
[16:42:32.848174] (debug)    New script: 16F72014
[16:42:32.850172] (system)    ML-AutoReboot: Loaded successfully.
[16:42:32.850172] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\A_MP-Helper.lua'...
[16:42:32.850172] (debug)    New script: 16F72C54
[16:42:32.884176] (system)    MP Helper: Loaded successfully.
[16:42:32.884176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\check-moonloader-updates.lua'...
[16:42:32.884176] (debug)    New script: 16F724AC
[16:42:32.889176] (system)    Check MoonLoader Updates: Loaded successfully.
[16:42:32.889176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Minecraft Health.lua'...
[16:42:32.889176] (debug)    New script: 16F72634
[16:42:32.894177] (system)    Minecraft Health.lua: Loaded successfully.
[16:42:32.894177] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\reload_all.lua'...
[16:42:32.894177] (debug)    New script: 16F73BA4
[16:42:32.896176] (system)    ML-ReloadAll: Loaded successfully.
[16:42:32.896176] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny CNN.lua'...
[16:42:32.896176] (debug)    New script: 16F73274
[16:42:32.914179] (system)    Script for CNN: Loaded successfully.
[16:42:32.914179] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua'...
[16:42:32.914179] (debug)    New script: 16F73894
[16:42:32.945179] (system)    Script for admins: Loaded successfully.
[16:42:32.945179] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\setWeather&Time.lua'...
[16:42:32.946180] (debug)    New script: 16F73D2C
[16:42:32.948180] (system)    setWeather&Time: Loaded successfully.
[16:42:32.949180] (system)    Loading script 'C:\Games\ARIZONA GAMES\bin\Arizona\moonloader\SF Integration.lua'...
[16:42:32.949180] (debug)    New script: 06BB0064
[16:42:32.955180] (system)    SF Integration: Loaded successfully.
Меня интересует этот фгармент

[16:35:01.505052] (exception) Script for admins: CJSON: Expected value but found invalid token at character 1
[16:35:01.506052] (error) Script for admins: ...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: attempt to index local 'info' (a nil value)
stack traceback:
...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:475: in function <...ONA GAMES\bin\Arizona\moonloader\Sabiny_Admin_helper.lua:470>
[16:35:01.507049] (error) Script for admins: Script died due to an error. (16F733FC)
ты скинул только первые 50 строчек скрипта, а сбой на 475-ой
 
  • Ха-ха
Реакции: lokitem