Menu Part 

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
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
Paint={} Paint.Map={}	-- [x][y]=RGB Paint.Image={}	-- [x][y]=Image ID Paint.Player={}	-- [id]={R,G,B,Paint Mode,Attack}	Attack: 0=no, 1=primary, 2=secondary addhook("menu","Paint.Menu") function Paint.Menu(id,men,sel) 	if men=="Edit Paint Color" then 		local i,d={},{} 		if sel<4 and sel>0 then 			i[1],i[2],i[3],d[1],d[2],d[3]=Paint.Player[id][sel]+1,Paint.Player[id][sel]+10,Paint.Player[id][sel]+100,Paint.Player[id][sel]-1,Paint.Player[id][sel]-10,Paint.Player[id][sel]-100 		end 		if sel==1 then 			menu(id,"Paint Color Red - "..Paint.Player[id][1]..",Increase 1|"..(i[1]>255 and 255 or i[1])..",Increase 10|"..(i[2]>255 and 255 or i[2])..",Increase 100|"..(i[3]>255 and 255 or i[3])..",Decrease 1|"..(d[1]>0 and d[1] or 0)..",Decrease 10|"..(d[2]>0 and d[2] or 0)..",Decrease 100|"..(d[3]>0 and d[3] or 0)) 		elseif sel==2 then 			menu(id,"Paint Color Green - "..Paint.Player[id][2]..",Increase 1|"..(i[1]>255 and 255 or i[1])..",Increase 10|"..(i[2]>255 and 255 or i[2])..",Increase 100|"..(i[3]>255 and 255 or i[3])..",Decrease 10|"..(d[2]>0 and d[2] or 0)..",Decrease 100|"..(d[3]>0 and d[3] or 0)) 		elseif sel==3 then 			menu(id,"Paint Color Blue - "..Paint.Player[id][3]..",Increase 1|"..(i[1]>255 and 255 or i[1])..",Increase 10|"..(i[2]>255 and 255 or i[2])..",Increase 100|"..(i[3]>255 and 255 or i[3])..",Decrease 10|"..(d[2]>0 and d[2] or 0)..",Decrease 100|"..(d[3]>0 and d[3] or 0)) 		elseif sel==4 then 			msg2(id,"\169"..string.format("%03d%03d%03d",Paint.Player[id][1],Paint.Player[id][2],Paint.Player[id][3]).."This is a Sample Message that have color that you choose!") 		end 	elseif men:find("Paint Color")==1 then 		local Col=men:match("Paint Color (%S+)") 		local Cur=tonumber(men:match("Paint Color %S+ %- (%d+)")) 		local R=0 		local I=0 		if sel>0 and sel<4 then 			R=Cur+10^(sel-1) 		elseif sel>3 and sel<7 then 			R=Cur-10^(sel-4) 		end 		if Col=="Red" then 			I=1 		elseif Col=="Green" then 			I=2 		elseif Col=="Blue" then 			I=3 		end 		Paint.Color[id][I]=R 		Paint.Menu(id,"Edit Paint Color",I) 	end end
I am trying to press the forth selection and it keep crashees
Logs 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[13:01:15] ----- Server started ----- [13:01:15] Warning: 'Offline / LAN'-mode is ENABLED. Server will NOT be added to serverlist. Other players on the internet will NOT see this server on their serverlist. Enter 'sv_lan 0' in your console or disable the 'Offline / LAN'-checkbox to change this setting. [13:01:15] Lua: Adding function 'Menu.Callback' to hook 'menu' [13:01:15] Lua: Adding function 'TextCMDLine' to hook 'second' [13:01:15] Lua: Adding function 'Tralts.Always' to hook 'always' [13:01:15] Lua: Adding function 'Tralts.Attack' to hook 'attack' [13:01:15] Lua: Adding function 'Tralts.Attack2' to hook 'attack2' [13:01:15] Lua: Adding function 'Tralts.Select' to hook 'select' [13:01:15] Lua: Adding function 'Tralts.Hit' to hook 'hit' [13:01:15] Lua: Adding function 'Paint.Startround' to hook 'startround' [13:01:15] Lua: Adding function 'Paint.Join' to hook 'join' [13:01:15] Lua: Adding function 'Paint.Serveraction' to hook 'serveraction' [13:01:15] Lua: Adding function 'Paint.Attack' to hook 'attack' [13:01:15] Lua: Adding function 'Paint.Attack2' to hook 'attack2' [13:01:15] Lua: Adding function 'Paint.Clientdata' to hook 'clientdata' [13:01:15] Lua: Adding function 'Paint.Menu' to hook 'menu' [13:01:19] Amaryllis bergabung di Pasukan Anti-Teroris [13:01:23] Amaryllis died [13:01:23] Amaryllis bergabung di Pasukan Anti-Teroris [13:01:28] Paint mode activated! [13:01:38] Paint mode deactivated! [13:01:39] Paint mode activated! [13:01:40] This is a Sample Message that have color that you choose!
Do i miss something?
EDIT: The crash is caused by


edited 1×, last 08.01.14 07:33:28 am