Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --os.pullEvent = os.pullEventRaw
- --Ask for name, set as variable: pName
- print("What is your in-game name?")
- local pName = read()
- print("How many suggestions do you have?")
- local sugNum = read()
- sugNum = tonumber(sugNum)
- suggestions = { }
- for i = 1, sugNum do
- print("What is your suggestion?")
- local suggestion = read()
- table.insert(suggestions, suggestion) --You don't need a key.
- end
- for i=1, #suggestions do --"#" is length of table/string.
- local h = fs.open(pName, "w")
- h.write(i .. ": " .. suggestions[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement