Simple SAMP Math Symbols Question
#3

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
Reply


Messages In This Thread
Simple SAMP Math Symbols Question - by SkizzoTrick - 31.03.2011, 21:04
Re: Simple SAMP Math Symbols Question - by Calgon - 31.03.2011, 21:07
Re: Simple SAMP Math Symbols Question - by Mauzen - 31.03.2011, 21:09
Re: Simple SAMP Math Symbols Question - by SkizzoTrick - 31.03.2011, 21:11
Re: Simple SAMP Math Symbols Question - by -Rebel Son- - 01.04.2011, 03:34

Forum Jump:


Users browsing this thread: 3 Guest(s)