i have detected 2 error on my scripts and need help to fix that.
1
2
3
2
3
LUA ERROR: sys/lua/hc/core/showdamage.lua:22: attempt to perform arithmetic on field '?' (a nil value) -> sys/lua/hc/core/showdamage.lua:22: in function <sys/lua/hc/core/showdamage.lua:20> -> in Lua hook 'hit', params: '©255000000 -> sys/lua/hc/core/showdamage.lua:22: in function <sys/lua/hc/core/showdamage.lua:20>'
1
2
3
2
3
LUA ERROR: sys/lua/awp/head.lua:28: attempt to perform arithmetic on a boolean value -> sys/lua/awp/head.lua:28: in function <sys/lua/awp/head.lua:25> -> in Lua hook 'hit', params: '©255000000 -> sys/lua/awp/head.lua:28: in function <sys/lua/awp/head.lua:25>'
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
my head lua: function onhit(id,source,weapon,hpdmg,apdmg) 	local accuracy1 = 0 	local accuracy2 = 0 	local difx = player(id,"x") - player(source,"x") 	local dify = player(id,"y") - player(source,"y") 	local goang = math.atan2(dify,difx)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
my showdamage lua: function hitshake(id,src,wpn,hp) 	if hp > 0 then 		sd.damage[src] = sd.damage[src] + hp 		sd.show(src) 		sd.showtimer[src] = 10 	end 	end