Now I have at least basic knowledge of programming with C, and was figuring out how the sample codes worked.
So I need to know what these things are for:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-------------------------------------- -- BADWORDS TABLE (LOWERCASE) -- -------------------------------------- sample.badwords.words = {"lol","no","bad","words","for","you"} -------------------------------------- -- HANDLE BADWORDS IN SAY MESSAGES -- -------------------------------------- addhook("say","sample.badwords.say") function sample.badwords.say(p,t) 	t=string.lower(t) 	for i = 1,#sample.badwords.words do 		if (string.find(t,sample.badwords.words[i])~=nil) then 			msg(player(p,"name").." said a bad word!") 			parse("kick "..p) 			break 		end 	end end
I wonder what does the "#" behind the variable "sample.badwords.words".
Also, the for starts with i=1 but it doesn't keep adding (1..2..etc) anywhere. I mean, the "i" indicates the position in the array "sample.badwords.words" or I am wrong?
It would be cool if you can explain me this two things. Thanks.
If you don't understand something, tell me and I'll answer you... English is not my main lenguage so maybe I wrote something confusing