LUA question - add to table
Deleted UserHow I can add in table
1
lol = {}
1
2
3
2
3
if I say 'add 136' then 	add.to.table 'lol' number '136' end
~thanks - factis699~
lol = {}
if I say 'add 136' then 	add.to.table 'lol' number '136' end
table.insert(table, what)
table.remove(table[, position]) -- If the position isn't given, the last object of the table will be removed.
lol = {} addhook("say","say1") function say1(id,message) 	local s = message:match("add '(.*)'") 	if s ~= nil then 		local b = tonumber(s) 		if b ~= nil then 			table.insert(lol,b) 		end 	end end
lol = {nil,[1] = {[a] = nil}} function IndexValue() if lol[1][a] = nil then 	lol[1][a] = 136 else 	lol[0] = 136 end addhook("roundstart","startround") function startround() 	IndexValue() end
lol = {} addhook("say","onSay") function onSay(id,txt) 	local _txt = string.sub(txt,1,3) 	local _number = string.sub(txt,5) 	if _txt == "add" and not _number == "" then 		_number = toumber(_number) 		table.insert(lol,_number) 	end end
lol = {nil,[1] = {[a] = nil}}
lol = {nil, [2] = {["a"] = nil}}
lol = {nil, [2] = {a = nil}}