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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
zones=1				 cz=math.random(1,zones) --currentzone inzone=array(32) zonetime=0 zonetimelimit=30 zonedrop=0 zonedroplimit=10 zonetiles=9			--default 3x3=9 items={76,76,89,47,79,79,76} dz_x=	{	 		zonex1={0,1,2,0,1,2,0,1,2}		 	} dz_y=	{	 		zoney1={0,0,0,1,1,1,2,2,2}		 	} addhook('move','checkpos') function checkpos(id,x,y) 	x=math.floor(x/32) 	y=math.floor(y/32) 	for i=1,zonetiles do 		if x==dz_x[cz][i] then		--here is error 			for s=1,zonetiles do 				if y==dz_y[cz][s] then 					inzone[id]=1 				else 					inzone[id]=0 				end 			end 		end 	end end addhook('second','second') function second() 	for i=1,32 do 		if inzone[i]==1 then 			local mn=player(i,'money')+50 			parse('setmoney '..i..'' ..mn..'') 		end 	end 	zonetime=zonetime+1 	zonedrop=zonedrop+1 	if zonetime==zonetimelimit then 		zonetime=0 		currentzone=math.random(1,zones) 	end 	if zonedrop==zonedroplimit then 		local t=math.random(1,zonetiles) 		local x=dz_x[cz][t] 		local y=dz_y[cz][t] 		local i=math.random(1,#items) 		parse('spawnitem '..i..' '..x..' '..y..'') 		zonedrop=0 	end end
'dropzone_gamemode.lua:40: attempt to index field '?'(a nil value)'
What does it mean? And what is incorrect?
1× editiert, zuletzt 10.03.12 00:49:28