- 447
- 92
- Версия MoonLoader
- .027.0-preview
Ку крч написал давно табличку капта для фам каптов, всё было норм, а щас ГГ. Ошибка:
:(
[ML] (error) FamCapt Helper: H:\Edik\SAMP\faa\WING\moonloader\FamCaptHelper_v.2.4.3.lua:1035: attempt to concatenate upvalue 'capturedScore' (a nil value)
stack traceback:
H:\Edik\SAMP\faa\WING\moonloader\FamCaptHelper_v.2.4.3.lua:1035: in function 'OnDrawFrame'
H:\Edik\SAMP\faa\WING\moonloader\lib\imgui.lua:1377: in function <H:\Edik\SAMP\faa\WING\moonloader\lib\imgui.lua:1366>
[ML] (error) FamCapt Helper: Script died due to an error. (0F3D4A04)
stack traceback:
H:\Edik\SAMP\faa\WING\moonloader\FamCaptHelper_v.2.4.3.lua:1035: in function 'OnDrawFrame'
H:\Edik\SAMP\faa\WING\moonloader\lib\imgui.lua:1377: in function <H:\Edik\SAMP\faa\WING\moonloader\lib\imgui.lua:1366>
[ML] (error) FamCapt Helper: Script died due to an error. (0F3D4A04)
Код:
--Табличка капта кастомная--
if second.v or tested then
imgui.SetNextWindowSize(imgui.ImVec2(185,138), imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos(imgui.ImVec2(def.config.secondPosX, def.config.secondPosY), imgui.Cond.FirstUseEver)
if second.v then
imgui.SetMouseCursor(-1)
imgui.ShowCursor = false
end
if NoTitleBar.v then NoTitle = 0 else NoTitle = 1 end
if not first.v then noMove = 4 else noMove = 0 end
title = ' WAR FOR TERRITORY - '..zoneID
imgui.Begin(u8(title), nil, 2 + 32 + NoTitle + noMove)
--imgui.PushFont(fa_font2)
if not NoTitleBar.v then
imgui.Text(title)
imgui.Separator()
end
imgui.Text('TIME: '..time)
if colored.v then
imgui.TextColoredRGB(u8("{19D119}"..captured..': '..capturedScore)) -- Строчка ошибки
imgui.TextColoredRGB(u8("{F41E1E}"..capt..': '..captScore))
else
imgui.Text(u8(captured..': '..capturedScore))
imgui.Text(u8(capt..': '..captScore))
end
if timeR < 0 then timeR = 0 end
if timeG < 0 then timeG = 0 end
imgui.Separator()
imgui.TextColoredRGB('{19D119}KD: '..timeR)
imgui.SameLine()
imgui.SetCursorPosX(imgui.GetWindowWidth()-50)
imgui.TextColoredRGB('{F41E1E}KD: '..timeG)
--imgui.PopFont()
secondPos = imgui.GetWindowPos()
def.config.secondPosX = secondPos.x
def.config.secondPosY = secondPos.y
inicfg.save(def, 'FamCfg.ini')
imgui.End()
end
-------------------------------------
:(
Последнее редактирование: