maulz Posted April 24, 2019 Posted April 24, 2019 while true do local sel = gg.prompt({"Select file:"}, {gg.getFile()}, {"file"}) if not sel then break else local file = loadfile(sel[1]) if file ~= nil then local out = sel[1] .. ".bin" local test = io.open(out, "w") test:write(string.dump(file, true)) test:close() gg.alert("Success!\nFile saved: "..out) break else gg.alert("Cannot load file!") end end end You can improve it by yourself
cumasukacit Posted April 27, 2019 Author Posted April 27, 2019 On 4/25/2019 at 3:45 AM, maulz said: while true do local sel = gg.prompt({"Select file:"}, {gg.getFile()}, {"file"}) if not sel then break else local file = loadfile(sel[1]) if file ~= nil then local out = sel[1] .. ".bin" local test = io.open(out, "w") test:write(string.dump(file, true)) test:close() gg.alert("Success!\nFile saved: "..out) break else gg.alert("Cannot load file!") end end end You can improve it by yourself it works, thank you
Question
cumasukacit
how to make script encrypted script ?
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.