Results 1 to 6 of 6

Thread: HUD with multiple values

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    HUD with multiple values

    Hi all,

    Im a little bit stuck. I want to display a HUD like "number1 / number 2", where number1 and number2 can change.
    How to do that?

    EDIT:
    Found this in default .str
    Code:
    REFERENCE           PRESSYESNO
    LANG_ENGLISH        "Press '&&1' for Yes, or '&&2' for No"
    How to update &&1 and &&2?
    Last edited by Ni3ls; 10th August 2016 at 12:04.

  2. The Following User Says Thank You to Ni3ls For This Useful Post:

    kubislav23 (10th August 2016)

  3. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Okay its not working. Iprint's are working, but how to make it work in a HUD?

  4. The Following User Says Thank You to Ni3ls For This Useful Post:

    kubislav23 (10th August 2016)

  5. #3
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    You can only set one value on a hud element.
    sudo apt-get rekt

  6. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Ah damn. So I have to create multiple HUDs?

  7. The Following User Says Thank You to Ni3ls For This Useful Post:

    kubislav23 (10th August 2016)

  8. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Nope, use creatinfhud() with setinftext().

    Search the forum
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  9. #6
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    But how to find those free "slots"?

  10. The Following User Says Thank You to Ni3ls For This Useful Post:

    kubislav23 (12th August 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •