Advertisement
Emuq

saveUser

Aug 5th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local args = { ... }
  2. if #args ~= 2 then return false end
  3. local user = args[1]
  4. local pass = args[2]
  5.  
  6. if (type(user) ~= "string" or type(pass) ~= "string") then return false end
  7. local file = fs.open("database/users", "a")
  8. local writeable = user .. " : " .. pass
  9. file.write(writeable .. "\n")
  10. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement