1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook ("join","namewrite") function namewrite(p) for v in io.lines("names.txt") do if (player(p,"name")~=v) then 	break 	end local file = assert(io.open("names.txt" , "a")) file:write(""..player(p,"name").."\n") file:close() end end
I have a text file (names.txt) and I want if somebody join and if the name hasn't been already written in text file the computer write it in like in a "Collectnames script".
But my version doesn't work.....
help pls