SA-MP Forums Archive
About money stock - 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: About money stock (/showthread.php?tid=565811)



About money stock - NexTioN1230 - 01.03.2015

Hello People,
How to make a money stock that every 3 number it will put a ","?
For Example:
3000 = 3,000
3000000 = 3,000,000
Thanks for helping...


Re: About money stock - NexTioN1230 - 02.03.2015

Any one? help?


Re: About money stock - MikE1990 - 02.03.2015

Lol i think this is impossible


Re: About money stock - BeesSi - 02.03.2015

It's impossible with a stock but do it like : Costs 3000, and then GivePlayerMoney(playerid, -3000); or something like this if you know what i mean, i can't give any code because im on school sending this from my cell...


Re: About money stock - CalvinC - 02.03.2015

Slice created an include for this:
https://sampforum.blast.hk/showthread.php?tid=184328

You can also use this function:
https://sampwiki.blast.hk/wiki/AddCommas


Re: About money stock - MikE1990 - 02.03.2015

Lol i needed something like this before for script.Thank you CalvinC.