Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
Вот через цикл for
if imgui.InputText(u8'Вводить кол-во повторений', test_text_buffer) then
end
if imgui.Button("test") then
for i = 1, tonumber(test_text_buffer.v) do
sampAddChatMessage("/s Продам шляпу мага", -1)
end
end
if imgui.InputText(u8'Вводить кол-во повторений', text) then
end
if imgui.Button("test") then
a = 1
repeat
a = a + 1
sampAddChatMessage("/s Продам шляпу мага", -1) --sampAddChatMessage() для демонстрации
until a > tonumber(text.v)
end
(error) Panic-Man - Diamond RP.lua: cannot resume non-suspended coroutine
stack traceback:
... Andreas Evolve-RP\moonloader\Panic-Man - Diamond RP.lua: in function 'get_down_keycombo'
... Andreas Evolve-RP\moonloader\Panic-Man - Diamond RP.lua:1820: in function <... Andreas...