Raised This Month: $ Target: $400
 0% 

how?: if a float=0.0 ..then set float=1.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
cs1.7
Senior Member
Join Date: Oct 2008
Old 06-28-2010 , 19:11   Re: how?: if a float=0.0 ..then set float=1.0
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
Dividing by zero will result in an error.
hmm.. it didnt. the formula returned a value of 0 if aliveplayers were 0.
Quote:
Originally Posted by fysiks View Post
I don't understand this code.
how can the below code made more efficient?
PHP Code:
    new FloatvariableX  MAXm 400;
    
    if (
variableX  30.0
    {
        
variableX  30.0;
    }
    
    if (
variableX  15.0)
    {
        
variableX  15.0;
    } 
__________________
_____________
/_____\
[° ||| °]
./..............\▓
cs1.7 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 14:51.


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