1
2
3
2
3
LUA ERROR: sys/lua/IF/sys/hooks.lua:337: attempt to index global 'havebal' (a nil value) -> sys/lua/IF/sys/hooks.lua:337: in function <sys/lua/IF/sys/hooks.lua:336> -> in Lua hook 'drop', params: 2, 358, 74, 0, 0, 0, 52, 13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function rp_drop(id,iid,type,ain,a,mode,x,y) 	if havebal[id]==true then 		parse("strip "..id.." "..type) 		parse("spawnitem "..type.." "..x.." "..y) 		havebal[id]=false 		return 1 	end 	for k, v in ipairs(Addons) do 		if v.FHave[id]==1 then 			if v.wpn == type then 				gmsg2(id,"255000000","You can't drop your weapon!") 				return 1 			end 		end 	end end