I have two problems (related with the title)...
1 - I do not remember how to load the values. Plus, how to load more than one value?
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function svJoin(id) 	if (player(id,"usgn") > 0) then 		local file = io.open ("sys/lua/USGN/"..player(id,"usgn")..".txt","r") 		if (file) then 			file:read () <--- ??? 			file:close () 		end 	end end
Those values are Kill[id],Dead[id] and KDR[id].
2 - Any way to make content in saved folder has separated (neat) text?
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
This is "..player(id,"usgn")..".txt -------------------------------------------------- Name: "..player(id,"name").." Kill: "..Kill[id].." Deaths: "..Dead[id].." etc etc etc
1
2
3
4
5
6
7
2
3
4
5
6
7
function svLeave(id) 	if (player(id,"usgn")> 0) then 		local file = io.open ("sys/luaUSGN/"..player(id,"usgn")..".txt","w") 		file:write ("Name: "..player(id,"name").." | Kill: "..Kill[id].." | Deaths: "..Dead[id]) 		file:close () 	end end
Any solutions are welcome.
edited 1×, last 31.10.14 06:46:55 am