i have this glow lua made by a friend
so it has an error
1- everything goes well in the beginning, when say !glow the menu appears
2-when click on next page, the menu closes and i have this error in console
any help ?
---------------------------------------------------- 							-------Simple Glow Script By Karim Patron----------- 							---------------------------------------------------- 							-------USGN : 113769-------------------------------- 							---------------------------------------------------- 							-------based on say, not serveraction--------------- 							---------------------------------------------------- 							-------incompleted yet (ERROR: page 2 don't appear)- 							---------------------------------------------------- 							-------More Colors---------------------------------- 							---------------------------------------------------- 							-------Done on 20/8/2013---------------------------- 							---------------------------------------------------- addhook("say","glow") function glow(id,txt) 	if txt == "!glow" then 		menu (id,"Glow Menu (Page 1/2),Glow Red,Glow Green,Glow Blue,Glow Yellow,Glow Orange,Glow Brown,Glow Pink,Glow Violet,---> Next Glow Page") 	end end addhook("menu","glow2") function glow2(id,menu,buton) 	if menu=="Glow Menu (Page 1/2)" then 		if buton==9 then 			menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") 		end 	elseif menu=="Glow Menu (Page 2/2)" then 		if buton==8 then 			menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") 		end 	end end addhook("menu","glowcolour") function glowcolour(id,menu,buton) 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 1 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,0,0) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 2 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,0,255,0) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 3 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,0,0,255) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 4 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,255,0) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 5 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,128,0) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 6 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,153,76,0) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 7 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,51,153) 		end 	end 	if menu=="Glow Menu (Page 1/2)" then 		if buton == 8 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,0,255) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 1 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,0,255,255) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 2 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,000,000,153) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 3 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,153,255,51) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 4 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,0,153,0) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 5 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,255,255,255) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 6 then 			freeimage(id) 			id1=image("gfx/sprites/flare2.bmp",0,0,100+id) 			imagescale(id1,1,1) 			imageblend(id1,1) 			imagealpha(id1,0.7) 			imagecolor(id1,0,0,0) 		end 	end 	if menu=="Glow Menu (Page 2/2)" then 		if buton == 7 then 			freeimage(id) 		end 	end end
addhook("menu","glow2") function glow2(id,menu,buton) if menu=="Glow Menu (Page 1/2)" then if buton==9 then menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") end elseif menu=="Glow Menu (Page 2/2)" then if buton==8 then menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") end end end
addhook("menu","glow2") function glow2(id,menu,buton) if menu=="Glow Menu (Page 1/2)" then if buton==9 then _G.menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") end elseif menu=="Glow Menu (Page 2/2)" then if buton==8 then _G.menu (id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") end end end
addhook("say","glow") function glow(id,txt) if txt == "!glow" then menu (id,"Glow Menu (Page 1/2),Glow Red,Glow Green,Glow Blue,Glow Yellow,Glow Orange,Glow Brown,Glow Pink,Glow Violet,---> Next Glow Page") 	return 1 end end addhook("menu","_menu") function _menu(id,title,buton) -- MENU GLOW PAGE 1 -- if title=="Glow Menu (Page 1/2)" then 			if buton == 1 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,0,0) elseif buton == 2 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,0,255,0) elseif buton == 3 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,0,0,255) elseif buton == 4 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,255,0) elseif buton == 5 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,128,0) elseif buton == 6 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,153,76,0) elseif buton == 7 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,51,153) elseif buton == 8 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,0,255) 		elseif buton == 9 then 		menu(id,"Glow Menu (Page 2/2),Glow Light Blue,Glow Dark Blue,Glow Light Green,Glow Dark Green,Glow White,Glow Black,Remove The Glow,<--- Previous Glow Page ") end end -- MENU GLOW PAGE 2 -- if title=="Glow Menu (Page 2/2)" then 			if buton == 1 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,0,255,255) elseif buton == 2 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,000,000,153) elseif buton == 3 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,153,255,51) elseif buton == 4 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,0,153,0) elseif buton == 5 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,255,255,255) elseif buton == 6 then freeimage(id) id1=image("gfx/sprites/flare2.bmp",0,0,100+id) imagescale(id1,1,1) imageblend(id1,1) imagealpha(id1,0.7) imagecolor(id1,0,0,0) elseif buton == 7 then freeimage(id) 		elseif buton == 8 then 		menu (id,"Glow Menu (Page 1/2),Glow Red,Glow Green,Glow Blue,Glow Yellow,Glow Orange,Glow Brown,Glow Pink,Glow Violet,---> Next Glow Page") end end end