Float problem
#1

I'm trying to multiply the interest by the money they have in total in the bank but for some reason it's not working. It's printing 0.00 and I'm not sure the reason of why it's doing this. Any help would be greatly appreciated.

PHP код:
        new FloatInterestRate;
        
//Interest Rates
        
if(PlayerInfo[playerid][pVIP] == 0)
        {
            
InterestRate 0.01;
        }
        else if(
PlayerInfo[playerid][pVIP] == 1)
        {
            
InterestRate 0.015;
        }
        else if(
PlayerInfo[playerid][pVIP] == 2)
        {
            
InterestRate 0.02;
        }
        else if(
PlayerInfo[playerid][pVIP] == 3)
        {
            
InterestRate 0.03;
        }
        else
        {
            
InterestRate 0.01;
        }
        
printf("Interest1: %.3f"InterestRate); 
Reply


Messages In This Thread
Float problem - by mrtms - 15.03.2013, 18:20
Re: Float problem - by Jstylezzz - 15.03.2013, 18:33
Re: Float problem - by mrtms - 15.03.2013, 18:43
Re: Float problem - by P3DRO - 15.03.2013, 21:27

Forum Jump:


Users browsing this thread: 2 Guest(s)