- 2
- 0
- Версия MoonLoader
- .027.0-preview
отказывается загружать файл
Lua:
function main()
while not isSampAvailable() do wait(100) end
downloadFile('link.com', getWorkingDirectory()..'\\1.lua')
end
function downloadFile(link, path)
local dlstatus = require('moonloader').download_status
downloadUrlToFile(link, path, function (id, status, p1, p2)
if status == dlstatus.STATUSEX_ENDDOWNLOAD then
sampAddChatMessage('1', -1)
script.load(path)
end
end)
end