1
2
3
4
5
2
3
4
5
mmpmap={{{}}}
pl=1
x=5
y=7
mmpmap[pl][x][y]=5		--error
I will stop this fucking project-why i need to do not my own game better?
Note:I wrote large part of my game.
Scripts
3darray
3darraymmpmap={{{}}}
pl=1
x=5
y=7
mmpmap[pl][x][y]=5		--error
if not table.unpack then table.unpack = unpack end
function table.copy(t)
	local b = {}
	for k,v in pairs(t) do
		if type(v)=='table' then
			v = table.copy(v)
		end
		b[k] = v
	end
	return b
end
function table.array(v, ...)
	local t = {}
	if arg[2] then
		v = table.array(v,table.unpack(arg,2))
	end
	for i=1,arg[1] do
		if arg[2] then v = table.copy(v) end
		t[i]=v
	end
	return t
end
a = table.array(0,32,20,20)