ID:150275
 
i'm having trouble setting off the deposit proc i made heres the code i really need some help
mob/trainer
Banker
icon='npc.dmi'
icon_state="9"
verb
Bank()
set src in oview(2)
switch(input("Hullo [usr.name],what would you like to do? You have [usr.goldsave] in your account")in list("Deposit","Withdraw","Cancel"))
if("Deposit")
usr<<"Depositing gold eh?"
usr.deposit()

if("Withdraw")
usr<< "sry just test"
if("Cancel")
usr<< "Cya later [usr.name] the [usr.race]"

mob/proc/deposit(amount as num)
if(src.gold<=amount)
src << "you haven't enough gold"
return
else
src.gold-=amount
src.goldsave+=amount
return
its called calling a proc not setting off a proc(just telling you that)
You might just want to mention what the problem is.
Frodo Wrote:
<< usr<<"Depositing gold eh?"
Ahem do you have to use "eh?" cause that whut I use all the time