[solved]how to?
how do I make an integer into a percent?
example i want the value of "zp44_xp[id] = 128796" to turn into percent? and the value of its max xp before leveling up is "max_xp = 140000" so how can i do it. and its shows in HUD Message [Level: 14000] [Experience: 75%] anyone? |
Re: [help]how to?
PHP Code:
|
Re: [help]how to?
Quote:
2. To show a percent sign in a format, you need to use a double percent sign. PHP Code:
|
Re: [help]how to?
Quote:
@exolent does "%i^%" work too? and do i have to make a floatround? |
Re: [help]how to?
Quote:
1. Try it and find out. 2. With Exolent's code, it effectively rounds for you automatically (rounds to floor) |
| All times are GMT -4. The time now is 04:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.