Raised This Month: $ Target: $400
 0% 

Float -> Int | How ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 07-21-2013 , 07:47   Float -> Int | How ?
Reply With Quote #1

Hello. How do I convert float to proper numbers i.e: 10.0 -> 10. I want to use this number in for loop but I think because of float, it crashed my game 3 times.
devWaleed is offline
Send a message via Skype™ to devWaleed
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-21-2013 , 08:09   Re: Float -> Int | How ?
Reply With Quote #2

Round it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2013 , 08:51   Re: Float -> Int | How ?
Reply With Quote #3

I doubt this crash is related to this. You can use floatround() though.
__________________
Arkshine is offline
Reply



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 06:32.


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