i dont know
attaempt to call a nil value
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
61
62
63
64
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
61
62
63
64
--paint----- ---cz2d.forumtl.com--- --lua by kalis -- function Array(size,value) 	local array = {} 	for i = 1, size do 		array[i]=value 	end 	return array end paint = Array(32,0) image_paint = Array(32,0) function paintmenu(id) 	menu(id,"Menu Paint,Paint,Off Paint") end addhook("serveraction","action") function action(id,a) 	if a == 1 then 		menu(id,"Menu Paint,Paint,Off Paint") 	end end addhook("menu","menupaint") function menupaint(id,title,key) 	if title == "Menu Paint" then 		if key == 1 then 			if paint[id] == 0 then 				msg2(id,"You Can Paint Now, Run = Paint!") 				paint[id]=1 			end 		elseif key == 2 then 			if paint[id]==1 then 				paint[id] = 0 				msg2(id,"Paint is close!") 			end 	 		end 		return 1 	end end addhook("move","startpain") function startpaint(id,x,y) r = math.random(1,255) b = math.random(1,255) g = math.random(1,255) color = math.random(1,2) image_paint[id] = image("gfx/sprites/dark.bmp",x,y,0) 	if paint[id]==1 then 		if color == 1 then 			imagecolor(image_paint[id],r,b,g) 		end 		if color == 2 then 			imagecolor(image_paint[id],r,b,g) 		end 	end end