Add milliseconds
Hey, i wondered how to add milliseconds to this plugin? Because when i searched on google there wasnt what i needed...
Any help is appreciated. PHP Code:
|
Re: Add milliseconds
use floats, easy as that lol..
|
Re: Add milliseconds
Quote:
|
Re: Add milliseconds
To show fractional seconds in the HUD message, you would need to change the AUTO_RESTART value in the lang files (for all lanugages) to use "%.3f" instead of "%i" or "%d" and then change floatround(fSec) to fSec.
But note it will probably look really strange because it only updates the value once every second. |
Re: Add milliseconds
Quote:
|
Re: Add milliseconds
Quote:
Quote:
|
Re: Add milliseconds
The smallest time value for set_task() is 0.1 seconds (100 ms) and but I'm not sure what the minimum display time for a HUD message is. If it's not less than 0.1 seconds, then this won't be possible. Regardless, it's likely unnecessary to show millisecond resolution for something trivial like this.
|
Re: Add milliseconds
Quote:
Thats because its kinda weird that random(256) hud color is updated every second... |
Re: Add milliseconds
try to adapt to your code:
PHP Code:
|
Re: Add milliseconds
Quote:
|
All times are GMT -4. The time now is 13:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.