- 978
- 341
- Версия MoonLoader
- .026-beta
кароче пытаюсь сделать второй вариант AddText т.е.
dl:AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL);
чота не получается
у меня
dl:AddText('Tahoma', 10.0, imgui.ImVec2(X2 - 30, Y2 - 30), imgui.GetColorU32Vec4(imgui.ImVec4(1, 1, 1, 1)), sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(v)))..'['..select(2, sampGetPlayerIdByCharHandle(v))..']')
ошибка
[ML] (error) test.lua: E:\by.ryunosuke\moonloader\test.lua:32: bad argument #1 to 'AddText' (cannot convert 'string' to 'struct ImVec2')
stack traceback:
[C]: in function 'AddText'
E:\by.ryunosuke\moonloader\test.lua:32: in function '_draw'
E:\by.ryunosuke\moonloader\lib\mimgui\init.lua:107: in function <E:\by.ryunosuke\moonloader\lib\mimgui\init.lua:91>
[ML] (error) test.lua: Script died due to an error. (01B63554)
чо делать
dl:AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL);
чота не получается
у меня
dl:AddText('Tahoma', 10.0, imgui.ImVec2(X2 - 30, Y2 - 30), imgui.GetColorU32Vec4(imgui.ImVec4(1, 1, 1, 1)), sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(v)))..'['..select(2, sampGetPlayerIdByCharHandle(v))..']')
ошибка
[ML] (error) test.lua: E:\by.ryunosuke\moonloader\test.lua:32: bad argument #1 to 'AddText' (cannot convert 'string' to 'struct ImVec2')
stack traceback:
[C]: in function 'AddText'
E:\by.ryunosuke\moonloader\test.lua:32: in function '_draw'
E:\by.ryunosuke\moonloader\lib\mimgui\init.lua:107: in function <E:\by.ryunosuke\moonloader\lib\mimgui\init.lua:91>
[ML] (error) test.lua: Script died due to an error. (01B63554)
чо делать