AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Float -> Int | How ? (https://forums.alliedmods.net/showthread.php?t=221377)

devWaleed 07-21-2013 07:47

Float -> Int | How ?
 
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.

YamiKaitou 07-21-2013 08:09

Re: Float -> Int | How ?
 
Round it

Arkshine 07-21-2013 08:51

Re: Float -> Int | How ?
 
I doubt this crash is related to this. You can use floatround() though.


All times are GMT -4. The time now is 06:32.

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