1
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
Whats this?
edited 1×, last 13.12.14 06:56:54 pm
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
unprotected error in call to Lua API
timer(1000,"parse","lua variable[id]=1")
function func() 	variable[id] = 1 end timer(1000, "func", "")
temp={} temp[1]={} timer(100,"temp.test.asd")
temp={ 	test={ 		-- if this nil, it does protected 		asd={ 			-- if this nil, it doesn't protected anymore 		} 	} }
-- same table above. temp={} local a,b=pcall(timer,1000,"temp.test.asd")
__unsafeTimer=timer function timer(a,b,c,d) 	local e,f=pcall(loadstring("return "..b)) 	if e==false then error(f) end 	if type(f)~="function" then error(b.." is not a function") end 	return __unsafeTimer(a,b,c,d) end