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
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
function initArray(m) local array = {} for i = 1,m do array[i]=0 	end return array end img = initArray(32) imgb = initArray(32) addhook("second","check") function check() 	for p=1,32 do 		if player(p,"weapontype")~=50 or player(p,"weapontype")~=53 then 		img[p] = 1 	else 		img[p] = 0 		end 	end end addhook("second","checkb") function checkb() 	if (img[p]==1) then 		image("gfx/sprites/text.bmp",1,1,201) 	elseif (img[p]==0) then 		image("gfx/sprites/text2.bmp",1,1,201) 	end end
No errors but image doesn't appear.
I also want only one image to appear but I don't know how to do it.