ID:272642
 
ok, i know this sounds stupid but how do i make it so when i drop gold i cant do a decimal of a number, it must be a whole number. heres my code.

obj
dropgold
name=""
icon='HUD.dmi'
icon_state="dropgold"
layer=91
screen_loc="11,2"
Click()
var/a=input("How much gold","Drop Gold")as num
if(a>0)
if(usr.gold>=a)
var/obj/currency/G=new/obj/currency/gold(usr.loc);G.amount=a
usr.gold-=a
else
return
Look up the round() proc.
In response to Jeff8500
ok thank you, sorry for posting something little like this.