31.03.2011, 21:09
tag savings as a float or use floatround, and force the compiler to treat the calculation as a float. 5/10=0.5 = 0 as a float, and 0*x=0.
new savings = floatround(0.05*(PlayerInfo[i][pSavings]));
@Calg00ne: Yours will just multiply the value with 20 It would be the other way round: (PlayerInfo[i][pSavings]/100)*5
new savings = floatround(0.05*(PlayerInfo[i][pSavings]));
@Calg00ne: Yours will just multiply the value with 20 It would be the other way round: (PlayerInfo[i][pSavings]/100)*5