- 102
- 19
- Версия MoonLoader
- Другое
вылазит вот такая ошибка
[08:07:00] [LUA] C:\Users\user\Desktop\вжаное\самп\scripts\AutoJmeatEat.lua:5: attempt to call global 'sendInput' (a nil value)
stack traceback:
C:\Users\user\Desktop\вжаное\самп\scripts\AutoJmeatEat.lua:5: in function 'callback'
...er\Desktop\вжаное\самп\scripts\libs\samp\events\core.lua:74: in function <...er\Desktop\вжаное\самп\scripts\libs\samp\events\core.lua:48>
[08:07:00] [GAMETEXT] ~r~You are very hungry!
фиксанул добавив require("addon")
[08:07:00] [LUA] C:\Users\user\Desktop\вжаное\самп\scripts\AutoJmeatEat.lua:5: attempt to call global 'sendInput' (a nil value)
stack traceback:
C:\Users\user\Desktop\вжаное\самп\scripts\AutoJmeatEat.lua:5: in function 'callback'
...er\Desktop\вжаное\самп\scripts\libs\samp\events\core.lua:74: in function <...er\Desktop\вжаное\самп\scripts\libs\samp\events\core.lua:48>
[08:07:00] [GAMETEXT] ~r~You are very hungry!
сам скрипт:
local sampev = require('samp.events')
function sampev.onDisplayGameText(style, time, text)
if text:find('You are hungry!') or text:find('You are very hungry!') then
sendInput("/jmeat")
print('[Auto Eat] Eated meat!')
end
end
фиксанул добавив require("addon")
Последнее редактирование: