I think i did somethink wrong at the generation of the table.
Google didn't give solutions...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
bombexploss={} function asdf() 	function drawexplo() 		local bombexplos={left={},right={},up={},down={},center=nil} 		--example: 		bombexplos.center=image(asd)		 		bombexplos.right[#bombexplos.right+1]=image(asd) 		bombexplos.left[#bombexplos.left+1]=image(asd) 		bombexplos.up[#bombexplos.up+1]=image(asd) 		bombexplos.down[#bombexplos.down+1]=image(asd) 		return bombexplos 	end 	function clearexplo() 		for i=1,#bombexploss[1].bombexplos.left do 			freeimage(bombexploss[1].bombexplos.left[i]) 		end 		for i=1,#bombexploss[1].bombexplos.right do 			freeimage(bombexploss[1].bombexplos.right[i]) 		end 		for i=1,#bombexploss[1].bombexplos.up do 			freeimage(bombexploss[1].bombexplos.up[i]) 		end 		for i=1,#bombexploss[1].bombexplos.down do 			freeimage(bombexploss[1].bombexplos.down[i]) 		end 		freeimage(bombexploss[1].bombexplos.center) 		table.remove(bombexploss,1) 	end 			 	bombexploss[#bombexploss+1]=drawexplo() 	timer(500,"clearexplo") end asdf()
the error is :
1
LUA ERROR: sys/lua/myscript.lua:15: attempt to index field 'bombexplos' (a nil value)
can you help me?