just does not work
I want a solution to this problem
if possible someone give me an example, i'll send one
1
timer(1400,"WP.GetValue",a1,a2,a3)
thx
timer(1400,"WP.GetValue",a1,a2,a3)
function splitString(str) 	local c = {} 	for word in string.gmatch(str, '[^%s]+') do 		table.insert(c, word) 	end 	return c end function WP.GetValue(string) 	local par = splitString(string) 	--par[1] is now a1, par[2] is a2 and par[3] is a3 end
if WP.Command == "!get" then 	if player(pl,"exists") then 	a1 = score[pl] 	a2 = frag[pl] 	a3 = deaths[pl] 	return 1 	end end
timer(1400,"WP.GetValue", a1 .. "," .. a2 .. "," .. a3)
function split_params(str) 	if not str then return nil end 	local tbl = {} 	for word in string.gmatch(str, "[^,]+") do 		table.insert(tbl, word) 	end 	return tbl end
a1 = stats[id].score a2 = stats[id].frags a3 = stats[id].deaths