codes
codes
codes
end
end
but i want to add one features...
save all players money etc...
but i dont want do this
hhsave(1)
hhsave(2)
hhsave(3)
....
...
..
.
how can i make this
hhsave(1,2,3,4,5)
?
Scripts
how can i do this "hhsave(1,2,3,4.....)"
how can i do this "hhsave(1,2,3,4.....)"
1

local text = "" 	text = text .." "..money 	text = text .." "..money2 	text = text .." "..money3 ect ...
function hhsave(...)
	local f = io.open('file.txt','w')
	if f then
		for i=1,#arg do
			f:write(arg[i],' ')
		end
		f:write('\n')
		return true
	else
		return false
	end
end
Re: how can i do this "hhsave(1,2,3,4.....)"f = assert(io.open('sys/lua/ssav.txt', 'w'))
	f:write(var1 ..' '..var2)
f:close
function hhsave(id)
file = io.open("sys/lua/hhsave/"..player(id,"usgn..'.txt', "w+") or io.tmpfile()	-- sys/lua/hhsave only example directory
local text = ""
text = text .." "..(array name)[id]	-- to add more save text you must copy "text = text .." ".." then put your array name. (array name) change it to your array name
file:write(text)		-- add this after text = text .." "..(array name)[id]
file:close
end
1
