local x = read() x()
thats basically what i want to do but of course it doesnt work like that
Posted 08 June 2013 - 12:09 AM
local x = read() x()
Posted 08 June 2013 - 12:17 AM
Posted 08 June 2013 - 12:19 AM
Posted 08 June 2013 - 04:45 AM
local x = read() local f = loadstring(x) local ok, err = pcall(f) if not ok then -- error with typed code end
Posted 08 June 2013 - 05:14 AM
tysciman7, on 08 June 2013 - 12:19 AM, said:
Posted 09 June 2013 - 02:12 AM
args = {...}
for i=1,#args do
if args[i] == "functionname" then
runfunction()
end
if args[i] == "functionname2" then
runfunction2()
end
end
Posted 09 June 2013 - 03:11 AM
tysciman7, on 08 June 2013 - 12:19 AM, said:
local myFuncs = {}
function myFuncs.foo()
print("bar")
end
local x = "foo"
myFuncs[x]()
0 members, 1 guests, 0 anonymous users