Could someone help me with timer function?
1
timer(20, 'open_menu(id)')
It returns nil error in no line
Please help me
Edit:
If you need full hook its here:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function clientdata_hook(id, mode, data1, data2) 	local x = data1 	local y = data2 	if actived[id] == 1 then 		if posInArea(x, y, closebutton[1], closebutton[2], closebutton[3], closebutton[4]) then 			freeimage(imgid[id]) 			parse('sv_sound2 '.. id ..' "wpn_select.wav"') 			actived[id] = 0 		else 			for n, w in ipairs(pos) do 				if posInArea(x, y, w[1], w[2], w[3], w[4]) then 					lastselect[id] = n 					freeimage(imgid[id]) 					parse('sv_sound2 '.. id ..' "wpn_select.wav"') 					actived[id] = 0 					timer(20, 'open_menu(id)') 					break 				end 			end 		end 	end end