Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- IPL loader by lopezloo, FCEB purpose.
- local iplList = {
- "countn2"
- }
- local output = {}
- for k, v in pairs(iplList) do
- if fileExists(v .. ".ipl") then
- outputServerLog("IPL-LOADER: Scanning \"" .. v .. "\".")
- local ipl = fileOpen(v .. ".ipl")
- if ipl then
- output[v] = {}
- local data = fileRead(ipl, fileGetSize(ipl))
- local instPosStart = string.find(data, "inst")
- local instPosEnd = string.find(data, "end")
- if not instPosStart or not instPosEnd then
- outputServerLog("ERROR: Can't find INST tag.")
- return
- end
- data = string.sub(data, instPosStart + string.len("inst\n"), instPosEnd - 1)
- local lines = split(data, "\n")
- for k2, v2 in pairs(lines) do
- output[v][k2] = split(v2, ", ")
- outputServerLog(output[v][k2][1] .. ", " .. output[v][k2][4] .. ", " .. output[v][k2][5] .. ", " .. output[v][k2][6] .. ", " .. tonumber(output[v][k2][9]))
- end
- end
- else
- outputServerLog("IPL-LOADER: \"" .. v .. "\" doesn't exist.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment