View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-02-2021 , 08:56   Re: Hudmessages disappear fast.
Reply With Quote #6

Code:
set_task(5

The difference between using 5 and 5.0 when the argument demands a float is astronomical.

This message is not being sent every 5 seconds. It's being sent 10 times per second because you're using an invalid value which makes it default to 0.1.

Having in mind that the holdtime of the message is 12 seconds, you're overflowing all of your available HUD channels thus making it impossible to display any other message for longer than ~0.4 seconds.

This is a great example of how a few lines of code can be destructive when used improperly, especially when the compiler gives you a warning that something's wrong.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom