1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function load_user(id) local file = io.open(pd..""..player(id,"usgn")..".txt","r") 	if (file~=nil) then 		for line in io.lines("sys/lua/data/"..player(id,"usgn")".txt","r") do 			local parses = totable(line) 			if (tonumber(parses[1])~=0 or tonumber(parses[1])~=nil) then 				s_iid = tonumber(parses[1]) 			end 			if (tonumber(parses[2])~=0 or tonumber(parses[2])~=nil) then 				s_iid = tonumber(parses[2]) 			end 		end 	end end pd="sys/lua/data/"
1
2
3
4
5
2
3
4
5
if (player(id, "usgn") > 0) then 		save_data = points[id].." "..level[id] 		file = assert(io.open("sys/lua/data/"..usgn..".txt","w")) 		file:write(save_data) 		file:close()