SA-MP Forums Archive
Make dollars.cents /deposit - 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: Make dollars.cents /deposit (/showthread.php?tid=504373)



Make dollars.cents /deposit - qmnty - 04.04.2014

How to make format /deposit Like This...

$1,000.00.

I try to make it but it can't work..

When i was input like this...
/deposit 1,000.00
It's can't work.

But If i was input like this...
/deposit 1000.00
It's work..

And this is my /deposit script

http://pastebin.com/5AYvMb63

Is that wrong Script or anything

Help Please !!


Re: Make dollars.cents /deposit - Bingo - 04.04.2014

You cant use , in your script.

Eg:- 1,000

Correct

Eg:- 1000 or with .0


Re: Make dollars.cents /deposit - qmnty - 04.04.2014

Hmm...

How to make double sscanf delimiter...

sscanf(amount, amount, "p<,>p<.>dd", dollar, cent)

Like That?
I want to make format like this...

/deposit 1,000.00