Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function searchPC(id)
- local h = fs.open("save", "r")
- local line = h.readLine()
- while(line ~= nil) do
- local vrgs = {}
- local b = 1
- for word in string.gmatch(line, '([^|]+)') do
- vrgs[b] = word
- b = b+1
- end
- if vrgs[1] == id then
- return vrgs[2]
- end
- line = h.readLine()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement