or how much strings "number" there
Forum
CS2D Scripts information about the fileinformation about the file
3 replies 1
or how much strings "number" there
1
2
3
4
5
6
2
3
4
5
6
local count = 0 while true do 	local line = io.read() 	if line == nil then break end 	count = count + 1 end
or
1
2
3
4
5
6
2
3
4
5
6
local count = 0 while true do 	if string.find(io.read(), 'number') then 		count = count + 1 	end end
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("spawn","ssstxt") function ssstxt(id) 	count=0 	for line in io.lines("sys/sss.txt") do 		count=count+1 	end 	msg2(id,count) end
or
io.lines(path)
1