15.03.2013, 18:20
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 Float: InterestRate;
//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);