mob
verb
cook()
var/cooking = input("What would you like to make?")in list("Spaghetti","Popo Puffs and Milk","PB&J Sandwich","Cancel")
if(cooking == "Spaghetti")
if(obj/spaghettinoodles && obj/tomatosauce && obj/groundbeef in usr.contents)
new/obj/spaghetti(usr)
del(obj/spaghettinoodles in usr.contents)
del(obj/groundbeef in usr.contents)
del(obj/tomatosauce in usr.contents)
if(cooking == "Popo Puffs and Milk")
if(obj/popopuffs && obj/milk in usr.contents)
new/obj/popopuffsmilk(usr)
del(obj/popopuffs in usr.contents)
del(obj/milk in usr.contents)
if(cooking == "PB&J Sandwich")
if(obj/pbnjswirl && obj/bread in usr.contents)
new/obj/pbj(usr)
del(obj/pbnjswirl in usr.contents)
del(obj/bread in usr.contents)
Problem description:
When I compile the code, I get 28 "undefined var" errors.
Can somebody help me?