ID:145866
 
Code:
            Del_Spam()
set category = "GM"
set src in view()
input("What type?", A)in list("Mob", "Object", "Turf")
if(A == "Mob")
input("Delete what mob?", M)as mob in view()
del(M)
if(A == "Object")
input("Delete what object?", O)as obj in view()
del(O)
if(A == "Turf")
input("Delete what turf?", T)as turf in view()
del(T)


Problem description:

I don't get any errors, but when I choose what type I wanna delete, it doesn't bring up a list of Objects/Mobs/Turfs.

What do I have wrong?

Try using in list()
You didn't define A's variable. input doesn't just keep data and assing it to a fun variable. What you have to do is switch through the list elements, or set a variable to them. Or, if you have a two-choice input(), you can use if(input()=="element")

Anyway, this is what you should have.
            Del_Spam()
set category = "GM"
set src in view()
switch(input("What type?")in list("Mob", "Object", "Turf"))
if("Mob")
var/mob/M=input("Delete what mob?", M)as mob in view()
del(M)
if("Object")
var/obj/O=input("Delete what object?", O)as obj in view()
del(O)
if("Turf")
var/turf/T=input("Delete what turf?", T)as turf in view()
del(T)


Of coarse, you can always make that safer. Just add a few checks like istype() and ASSERT()