Is it possible to get the amount of all registered ranks?
I would like to make a message like this one:
Player is on rank 23 of 1134.
Scripts
Get amount of ranks
Get amount of ranks
1

Mami Tomoe: I have already thought about that. I will do that if there is no other possibility
Baloon: I know that there are 4 ranks in my server but the script says the lowest rank is 2 function getlowestrank()
	local dir = "sys/stats/userstats.dat"
	local file = io.open(dir, "rb")
	local res, size = 0, file:seek("end")
	file:seek("set", 17)
	repeat
		file:read("*l")
		res = res + 1
		file:seek("cur", 34)
	until file:seek("cur") >= size
	file:close()
	return res
end
--testing
print("Lowest rank is "..getlowestrank())
file:close()at the end of the function.
Thanks
1
