mob
banker
verb/Bank()
set src in oview(1)
switch(alert("Would you like to deposit or withdraw?","banker","deposit","withdraw","leave"))
if("deposit")
depositing
var/x=input("deposit what?")as null|obj in usr.contents
if(x)
usr.bank+=x
usr.contents-=x
sleep(1)
goto depositing
else
switch(alert("Will there be anything else?","banker","deposit","withdraw","leave"))
if("withdraw")
goto withdrawing
if("deposit")
goto depositing
if("withdraw")
withdrawing
var/x=input("withdraw what?")as null|obj in usr.bank
if(x)
usr.contents+=x
usr.bank-=x
sleep(1)
goto withdrawing
else
switch(alert("Will there be anything else?","banker","deposit","withdraw","leave"))
if("withdraw")
goto withdrawing
if("deposit")
goto depositing
This is my tacky tacky banking system. I thought it up in ten minutes in school. But, it gives me a LOT of runtime errors! What's wrong with it?