• Draw.SimpleTextOutlined error D:
    0 replies, posted
Hello there, Can't get Draw.SimpleTextOutlined to work. Here is the error I'm getting. [code]Hook 'StiligTekst' Failed: [lua\includes\modules\draw.lua:117] attempt to perform arithmetic on local 'outlinewidth' (a table value)[/code] And here is my code. [Lua]function woop() if ( CLIENT ) then if Nrj then draw.SimpleTextOutlined("Station: Nrj", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif RadioNorge then draw.SimpleTextOutlined("Station: RadioNorge", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif P4 then draw.SimpleTextOutlined("Station: P4", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif Nrk1 then draw.SimpleTextOutlined("Station: Nrk1", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif Nrk3 then draw.SimpleTextOutlined("Station: Nrk3", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif Live1 then draw.SimpleTextOutlined("Station: Live1", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif BBC2 then draw.SimpleTextOutlined("Station: BBC2", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif RadioSeven then draw.SimpleTextOutlined("Station: RadioSeven", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif NationPublicRadio then draw.SimpleTextOutlined("Station: NationPublicRadio", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) elseif ZRockRock then draw.SimpleTextOutlined("Station: Z-Rock", "Coolfont", ScrW() * 0.5, ScrH() * 0.01, Color( 118, 238, 0, 225), TEXT_ALIGN_CENTER, 5, Color(0, 0, 0,225)) else return end end end hook.Add("HUDPaint", "StiligTekst", woop )[/Lua] Works perfectly with draw.SimpleText, but with outlined it dosen't Please help :=) [B]-SOLVED-[/B]
Sorry, you need to Log In to post a reply to this thread.