Raised This Month: $ Target: $400
 0% 

Problem with float.inc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-15-2018 , 10:25   Re: Problem with float.inc
Reply With Quote #1

Hm, maybe:

Code:
Float:effec(izStats[8]) {     if (!izStats[STATS_KILLS])         return _:0.0 // line 923         return (100.0 * float(izStats[STATS_KILLS]) / float(izStats[STATS_KILLS] + izStats[STATS_DEATHS])) }

or also:

Code:
Float:effec(izStats[8]) {     if (!izStats[STATS_KILLS])         return _:0.0 // line 923         new result = 100 * izStats[STATS_KILLS] / (izStats[STATS_KILLS] + izStats[STATS_DEATHS]);     return float(result); }
__________________









Last edited by CrazY.; 05-15-2018 at 10:30.
CrazY. 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 04:35.


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