[ML] (error) house.lua: C:\Program Files (x86)\gta for3\moonloader\house.lua:8: attempt to yield across C-call boundary
stack traceback:
[C]: in function 'wait'
C:\Program Files (x86)\gta for3\moonloader\house.lua:8: in function 'callback'
...Files (x86)\gta for3\moonloader\lib\samp\events\core.lua:77: in function 'process_event'
...Files (x86)\gta for3\moonloader\lib\samp\events\core.lua:100: in function 'process_packet'
...Files (x86)\gta for3\moonloader\lib\samp\events\core.lua:127: in function <...Files (x86)\gta for3\moonloader\lib\samp\events\core.lua:126>
[ML] (error) house.lua: Script died due to an error. (01CA1A9C)
стало выдавать такую ошибку
вот код:
require 'lib.moonloader'
require 'lib.sampfuncs'
local SE = require 'lib.samp.events'
function SE.onServerMessage(color, text)
if(string.find(text, "« Неоплаченное частное имущество выставлено на продажу »")) then
wait(50)
sampSendChat("/buyhouse")
wait(200)
sampSendChat("/buyhouse")
wait(200)
sampSendChat("/buyhouse")
end
end