It's because i'm a nub at scripts so can you please Fix it?
When i finished doin' it it Showed "EXCEPTION_ACCESS_VIOLATION" Thingy Please help me here's the Code,
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
----------Menu Open with F2------- addhook("serveraction","Hats") function Hats(id,actionbutton) if (actionbutton==1) then getaction1(id) end end --------------------------- function getaction1(id) menu(id,"Hats and Stuff,Angel|Hat,Blue Roof|Costume,Devil| Hat,Fan|Hat,Hero|Costume,Santa|Hat,Umbrella Blue|Hat,Umbrella Red|Hat") end --------------------------- addhook("menu","menuaction") function menuaction(id,m,b) if m=="Hats and Stuff" then ------Angel-------- if b==1 then ---Add Function's Here--- id=image("gfx/creslic/Angel.png",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- end ------Blue Roof-------- if b==2 then ---Add Function's Here--- 	id=image("gfx/creslic/Blue Roof.bmp",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- end ------Devil-------- if b==3 then ---Add Function's Here--- 	id=image("gfx/creslic/Devil.png",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- end ------Fan-------- if b==4 then ---Add Function's Here--- 	id=image("gfx/creslic/Fanspng",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- end ------Santa-------- if b==5 then ---Add Function's Here--- 	id=image("gfx/creslic/Santa_hat.png",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- ------Umbrella Blue-------- if b==6 then ---Add Function's Here--- 	id=image("gfx/creslic/Umbrella.png",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- ------Umbrella Red-------- if b==7 then ---Add Function's Here--- 	id=image("gfx/creslic/Umbrella_t.png",1,1,200+id) 	imagescale(id1,1,1) 	imageblend(id1,0) 	imagealpha(id1,1.0) -------------------------------------- ------Remove Hat-------- if b==8 then ---Add Function's Here--- 	freeimage(id) -------------------------------------- end addhook("minute","ads.minute") function ads.minute() 	msg("©000255000 Hats Mod Alpha State By Creslic Were --------------------------------------------------------- ©000000000Made at CS2D Lua Maker © WereR Creslic File") end end end