Forum

> > CS2D > Scripts > Lua error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua error

4 replies
To the start Previous 1 Next To the start

old Lua error

Noswear222
User Off Offline

Quote
addhook("hit" , "flame_medic")
function flame_medic(id,source,w,hpdmg,apdmg)

if w==46 then
parse("setheath "..id.." "..player(id,"heath")+1)
end
     end

LUA ERROR: sys/lua/samples/medic.lua:19: attempt to perform arithmetic on a boolean value

old Re: Lua error

Tajifun
User Off Offline

Quote
1
2
3
4
5
6
addhook("hit" , "flame_medic")
function flame_medic(id,source,w,hpdmg,apdmg)
	if w==46 then
		parse("setheath "..id.." "..(player(id,"health")+1).."")
	end
end

Use [ code] & [ /code] (Without Spaces) next time!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview