Help with HUD
Hello, sorry for my bad english. I'm just doing a kills / deaths by HUD but when I try HUD bugged me. please help me fix D:
PHP Code:
|
Re: Help with HUD
1. post all code
2. tell us all your problems |
Re: Help with HUD
No need to put all the code as it is in that line the bug.
What I want is to divide kills by deaths and give me the result in the hud where "K / D" said. No if he understood. for example Kills 10 Deaths: 5 K/D: 2.0 |
Re: Help with HUD
You have to change the kills and deaths to floating point values before you can divide. Then, you have to use %f and not %d to show the value.
Code:
Float:kdr = float(kills)/float(deaths) |
Re: Help with HUD
Thanks leave the code
PHP Code:
|
| All times are GMT -4. The time now is 18:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.