Make dollars.cents /deposit
#1

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 !!
Reply
#2

You cant use , in your script.

Eg:- 1,000

Correct

Eg:- 1000 or with .0
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)