Raised This Month: $51 Target: $400
 12% 

RoundTo... returning 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-19-2015 , 00:12   RoundTo... returning 0
Reply With Quote #1

Code:

PHP Code:
    float AmmoClip;

// .... some other operations here

    
int AmmoInt RoundToCeil(Ammo);
    
int ClipInt RoundToCeil(Clip);
    
    
PrintToChatAll("Ammo: %d %d, Clip: %d %d"AmmoAmmoIntClipClipInt); 
The printout in-game:

Code:
Ammo: 24 0, Clip: 16 0
The 24 and 16 are correct but they are floating point numbers in the code. I want them to be integers. Why is RoundToCeil returning 0?
Potato Uno is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode