Skills float
hey, i'm a new one(still learning) . my problem is i need how to set a float number and read it in hud . like this(just a ex)
[ Name : darklite | Health: x | Skills : 1.6% ] |
Re: help pleasee
Let the code say it.
PHP Code:
|
Re: help pleasee
already made it :v
when i add cvar and i check in DeathMsg if headshot i try to add a float like cvar = register_cvar("float_hs","1.40") if (read_data(3)).... Skills[id] += get_pcvar_float(cvar)) but in hud does not appear the cvar ... |
Re: help pleasee
You dont need to convert the float to a string, use '%f' to format the output.
PHP Code:
|
Re: help pleasee
Quote:
|
Re: help pleasee
lol . i've test it before !
|
Re: help pleasee
Can you post the whole code? It's quite difficult to say whats wrong when we don't have the source.
|
Re: help pleasee
PHP Code:
|
Re: Skills float
The tag should not be here:
PHP Code:
PHP Code:
P.S.: You can also do this: PHP Code:
PHP Code:
|
Re: Skills float
lool my mistake is i didn't notice that there's a difference between float and Float . tnx anyway ^_^
|
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.