Floats Help
Code:
Prints 0.0000000 0.00000000 Few notes: g_CarMaxSpeed[id] is 485 g_PredefGears[g_CurrentGear[id]] is 1 What is the proper way to do this? Thanks in advance, DF3. |
Re: Floats Help
Code:
new Float:Ratio = float(g_CarMaxSpeed[id]) / 1000.0;Note: g_Userspeed[id] must be a float too :s |
Re: Floats Help
Quote:
Thanks for the help. |
Re: Floats Help
whats the %.1f for?
|
Re: Floats Help
Quote:
|
Re: Floats Help
wow why was that not written in the scripting wiki s, been looking for that for ages
|
Re: Floats Help
lol
|
Re: Floats Help
Quote:
http://www.amxmodx.org/funcwiki.php?go=func&id=49 points you to the c++ printf http://www.cplusplus.com/reference/c...io/printf.html and it is explained there. |
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.