Multiplication in sa-mp
#7

Quote:
Originally Posted by kLx
Oh, so it was a float, thanks.
the float tag isnt important but gives a more accurate result
if you do it like that it will take the number directly without fractional digits

pawn Код:
new checks = 1000;
new tax = checks*0.02;
printf("%d", tax);
Reply


Messages In This Thread
Multiplication in sa-mp - by kLx - 20.12.2009, 11:49
Re: Multiplication in sa-mp - by daalz - 20.12.2009, 11:52
Re: Multiplication in sa-mp - by LarzI - 20.12.2009, 11:53
Re: Multiplication in sa-mp - by kLx - 20.12.2009, 11:54
Re: Multiplication in sa-mp - by LarzI - 20.12.2009, 11:57
Re: Multiplication in sa-mp - by kLx - 20.12.2009, 11:58
Re: Multiplication in sa-mp - by Nero_3D - 20.12.2009, 12:01
Re: Multiplication in sa-mp - by Dark_Kostas - 20.12.2009, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)