turf
Sell
Sell2
icon='other stuff.dmi'
icon_state="sell2"
name="Sell"
Click(var/obj/O in usr.contents)
switch(input("Are you sure you want to sell the [O] for [O.price]?")in list("Yes","No"))
if("Yes")
if(O.isequipped == 1)
usr << "Please unequip this item!"
if(O.whatitis=="Bone")
usr.bonesgot--
usr.Gold += O.price
del(O)
if(O.whatitis=="Fish")
usr.fish--
usr.Gold += O.price
del(O)
else
usr.Gold += O.price
del(O)
if("No")
usr<<"Okay!"
Problem description:
It returns with an error when I click the Sell button...