Using Clamp Function
Like in jctf when users use a adrenaline it shows a hud
x of 100 adrenaline used where x is the amount of adrenaline left .. And as soon as x=0 the adrenaline ends Here's the code PHP Code:
For example if i buy a power for 100 money then it would show a hud with .. of 100 money left and as its 0 it would end ... Any helps please ? |
Re: Using Clamp Function
So, what is you question about using clamp()?
|
Re: Using Clamp Function
Yeah .. I mean can this thing can be done by any other way too ? or just clamp?
If by clamp then how ? |
Re: Using Clamp Function
clamp() is a straightforward function. It simply coerces a value to be within the provided range. If clamp() works for your situation then use it, if it doesn't work for you then don't use it.
Other than that I have no clue what you are talking about. |
| All times are GMT -4. The time now is 23:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.