1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
function ttfk() 	timer(2000,ttfk2,"5" "5",2) end function ttfk2(a,b) 	print(a) 	print(b) end
Is there possible to make timer with 2 parameter a and b on funktion ttfk2?
function ttfk() 	timer(2000,ttfk2,"5" "5",2) end function ttfk2(a,b) 	print(a) 	print(b) end
timer(100,"parse","lua ttfk2(1,2)")
function timer2(d, a, f, c) 	local i = #t2 + 1 	t2[i] = { 		a = a, 		f = f, 		c = c and (c == 0 and -1 or c) or 1 	} 	timer(d, "t2h", i, c) 	return i end function freetimer2(i) 	if i then 		if t2[i].c ~= 0 then 			freetimer("t2h", i) 		end 		t2[i] = nil 	else 		for i in pairs(t2) do 			if t2[i].c ~= 0 then 				freetimer("t2h", i) 			end 		end 		t2 = {} 	end end t2 = {} function t2h(i) 	i = tonumber(i) 	t2[i].f(unpack(t2[i].a)) 	t2[i].c = t2[i].c - 1 	if t2[i].c == 0 then 		freetimer2(i) 	end end local id = timer2(2000, {"5", "5"}, ttfk2, 2)