![](img/smiles/ugly.gif)
EDIT: i am good at English but dose there any Lua manual on Arabic ??
function table.find(t,v) --t is the table you want to search and v is the value 	for i,value in ipairs(t) do --loop through the table 		if value == v then --check if the value is the one whe are looking for 			return i --return the index where we found the value 		end 	end 	return nil --the value hasn't been found, so we return nil end
timer(8000,"",freeimage(fad[p])
counts = 5 milisecs = 1000 -- (1 second) timer(milisecs,"CS2D_TIME",0,counts) function CS2D_TIME() 	counts = counts - 1 	if (counts > 0) then 		print("Timer working - It's going to be removed after "..counts.." times!") 	else 		print("Timer is removed!") 	end end
addhook("say","tst") function tst(p,t) 	if t == "hi" then 	counts = 4 		timer(1000,"CS2D_TIME",p,counts) 	end end function CS2D_TIME(p) counts = counts - 1 if (counts > 0) then print("Timer working - It's going to be removed after "..counts.." times! "..p) else print("Timer is removed!") end end
function updatescore(id) parse('hudtxt2 ') end addhook("kill","get_score") function get_score(id) updatehud(id) end parse('hudtxt2 '..id..' 1 "©000255000Score: '..player(id,"score")..'" 150 10')
function updatescore(id) parse('hudtxt2 '..id..' 1 "©000255000Score: '..player(id,"score")..'" 150 10') end addhook("kill","get_score") function get_score(id) updatehud(id) end
LUA ERROR :attempt to call a nil value
attempt to call global 'addhook' (a nil value)
LUA ERROR :attempt to call a nil value
attempt to call global 'addhook' (a nil value)
if (dh4==nil) then dh4={} end
if (team>0) then
addhook("team","dh4.team") function dh4.team(id,team) if (player(id,"team") == [b]1[/b]) then dh4.classmenu(id) end end
addhook("spawn","dh4.team") function dh4.team(id,team) dh4.classmenu(id) end end
LUA ERROR: attempt to concatenate field "?" a nil value