SA-MP Forums Archive
Getting part of money - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting part of money (/showthread.php?tid=271996)



Getting part of money - DragonYancy - 26.07.2011

I want to get player's money's 100/2, How will I do this?


Re: Getting part of money - -CaRRoT - 26.07.2011

I Really don't understand what you mean...xD , can you Describe more what you want to do?


Re: Getting part of money - DragonYancy - 26.07.2011

We can take player's money with GetPlayerMoney(bla bla bla)
I took and I want 100/2 of it. How can I take it?


Re: Getting part of money - antonio112 - 26.07.2011

You want % percent? 2% ? If yes, try something like:
pawn Код:
new cash, partcash;
cash = GetPlayerMoney(playerid)
partcash = (cash * 2) / 100



Re: Getting part of money - DragonYancy - 26.07.2011

YAY! I was waiting for this THANK YOU SO MUCH!