EntityDisplay Health error

So I when trying to put health on my entity display panel it kept giving me errors.

Error:
[ERROR] lua/includes/extensions/math.lua:160: attempt to perform arithmetic on local ‘num’ (a table value)

  1. Round - lua/includes/extensions/math.lua:160
  2. RoundedBox - lua/includes/modules/draw.lua:189
    3. fn - addons/mattehud/lua/autorun/client/cl_main.lua:294
    4. unknown - addons/ulib/lua/ulib/shared/hook.lua:110

Here is my code:



draw.RoundedBox(0, 15, 100, 200, 20, Color(105,105,105,255))
local DrawHealth = ply:Health() or ""
local EchoHealth = ply:Health() or ""
if DrawHealth > 100 then DrawHealth = 100 end
if DrawHealth < 0 then DrawHealth = 0 end

if DrawHealth != 0 then
	draw.RoundedBox(0, 15, 100 * DrawHealth / 100, 20-4, Color(178,34,34,255))
end	

draw.SimpleText("Health: "..EchoHealth ,"ArmorFont", 176, ScrH () - 51, Color(255,255,255,255))


Your missing some arguments in your rounded box

draw.RoundedBox

Well, i feel completely retarded… Thanks

EDIT:
It shows my background (when health is missing)
But it is still giving me that same error. And now my map is transparent

Can you post updated code

Updated

Which is line 294?

Your second use of draw.RoundedBox is still missing an argument.

draw.RoundedBox(0, 15, 100, 200, 20, Color(105,105,105,255))

[editline]14th January 2017[/editline]

Where? All arguments are there

[lua]
draw.RoundedBox(0, 15, 100 * DrawHealth / 100, 20-4, Color(178,34,34,255))
[/lua]
I count 5. You need 6.

[editline]14th January 2017[/editline]

AHH, I see it now, it’s fixed now, thanks so much, sorry for doubting you xD