Can t find yellow hex color for my healthbar

  • #1, by nerdSunday, 10. February, 14:59 7 months ago
    local health

    graphics.addDrawFunc("draw()", 0)



    function drawHealthBar()

    health = (Values["MC_health"].Int / 100) * 300

    -- + --

    function draw() graphics.drawBox(319, 84, health, 40, 0xFFFF00, 1) end

    end
    If I m not wrong 0xFFFF00 should be yellow, but it come out blu, what's the right code for yellow?

    Forum Fan

    147 Posts


  • #2, by AFRLmeSunday, 10. February, 16:42 7 months ago
    for some reason the color order is incorrect in VS.

    I think it's BGR or BRG instead. I forget which order, but try swapping the first 2 with the last 2 values.

    Imperator

    6587 Posts

  • #3, by nerdSunday, 10. February, 16:44 7 months ago
    thank you, it worked

    Forum Fan

    147 Posts

  • #4, by AFRLmeSunday, 10. February, 18:01 7 months ago
    which order was it?

    Imperator

    6587 Posts

  • #5, by nerdSunday, 10. February, 20:58 7 months ago
    it was 0x00ffff

    Could you tell me how do I register separate funcion for the drawBoxes? I'm stuck roll

    Forum Fan

    147 Posts

  • #6, by AFRLmeSunday, 10. February, 23:25 7 months ago
    what's up with the last fight icon?

    Imperator

    6587 Posts

Write post