Нужно фиксануть скрипт

Licht

Известный
Автор темы
238
32
Версия SA-MP
  1. 0.3.7 (R1)
Тупо пофиксить работу скрипта...
не лшатаю что там не так.. вроде норм. Вид /members.
При открытии скрипта он термитнулся...
44454

Это PP1
 

Вложения

  • Members.lua
    9.4 KB · Просмотры: 12
Решение
[ML] (error) CMembers: E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: stack index 2, expected string, received number: (bad argument into 'void(const structImVec4&, const char*)')
stack traceback:
[C]: in function 'TextColored'
E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: in function 'OnDrawFrame'
E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1378: in function <E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1367>
[ML] (error) CMembers: Script died due to an error. (0C2FEF44)
тоже тустринг нужен на 178 строке. он получает число, а не текст

Licht

Известный
Автор темы
238
32
лог после смерти скинь
Ух шустрый, буду за пк кину.
лог после смерти скинь
[ML] (error) CMembers: E:\Games\GTASAMP_by_lite\moonloader\Members.lua:136: stack index 1, expected string, received number: (bad argument into 'void(const char*)')
stack traceback:
[C]: in function 'Text'
E:\Games\GTASAMP_by_lite\moonloader\Members.lua:136: in function 'OnDrawFrame'
E:\Games\GTASAMP_by_Liechtenstein\moonloader\lib\imgui.lua:1378: in function <E:\Games\GTASAMP_by_lite\moonloader\lib\imgui.lua:1367>
[ML] (error) CMembers: Script died due to an error. (id:12)
 
Последнее редактирование:

Licht

Известный
Автор темы
238
32
136 строка, нужно вывод imgui.Text обернуть в tostring
Lua:
imgui.Text(tostring(переменная))

По логу чисто, файл не качал
[ML] (error) CMembers: E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: stack index 2, expected string, received number: (bad argument into 'void(const structImVec4&, const char*)')
stack traceback:
[C]: in function 'TextColored'
E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: in function 'OnDrawFrame'
E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1378: in function <E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1367>
[ML] (error) CMembers: Script died due to an error. (0C2FEF44)
 

AnWu

Guardian of Order
Всефорумный модератор
4,689
5,196
[ML] (error) CMembers: E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: stack index 2, expected string, received number: (bad argument into 'void(const structImVec4&, const char*)')
stack traceback:
[C]: in function 'TextColored'
E:\Games\GTASAMP_by_Lite\moonloader\Members.lua:178: in function 'OnDrawFrame'
E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1378: in function <E:\Games\GTASAMP_by_Lite\moonloader\lib\imgui.lua:1367>
[ML] (error) CMembers: Script died due to an error. (0C2FEF44)
тоже тустринг нужен на 178 строке. он получает число, а не текст
 
  • Нравится
Реакции: Licht