SA-MP Forums Archive
Why does this happen when I try to take 60% from an amount and add it somewhere? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why does this happen when I try to take 60% from an amount and add it somewhere? (/showthread.php?tid=446946)



Why does this happen when I try to take 60% from an amount and add it somewhere? - 101 - 28.06.2013

bPrice is 10000, in a .ini

bCash += (bPrice*0.6);

It adds 1169915904 instead, why?a


edit:


nvm, had to do (bprice/100)*60