Hello,
I have a small fantisy shop... where players can use their earned "credits" to buy fake items and such... My problem is that they can buy .[anything] of an item... they are charged .[number] of the cost but no item is assigned.
they can't buy below 1 though... soo if they tried to buy .2 it wouldnt work... if they tried to buy .9 it wouldnt work...
if they tried to buy 1.9 or 2.1 for example it would work... and if the item costed 1000 credits...
they would be charged 1900 and 2100 for the examples...
is there a way to only accept whole numbers...
what about checking to see if there is a . in the value submited?
Just need some help
Thanks
Erik~~~