Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function save(table,name)
- if fs.exists(name) == false then
- fs.makeDir(name)
- end
- local file = fs.open(name,"w")
- file.write(textutils.serialize(table))
- file.close()
- end
- local arr = {}
- local n = 1
- while n~=0 do
- print("Geben Sie eine ID ein!")
- table.insert(arr,tonumber(io.read()))
- print("Geben Sie zum Beenden die 0 ein.")
- print("Ansonsten eine andere Zahl")
- n = tonumber(io.read())
- end
- if fs.exists("UserIDs") == false then
- fs.makeDir("UserIDs")
- end
- save(arr, "UserIDs")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement