ID:141712
 
Code:
        Deletechar()
if(!src.inprocess)
switch(input("Which save slot would you like to delete?","Delete",null) in list("Slot 1","Slot 2","Slot 3","Cancel"))
if("Slot 1")
src.saveslot = 1
if(fexists("Save/[src.ckey][src.saveslot]"))
del("Save/[src.ckey][src.saveslot]")
src.inprocess = 0
else
src << "There is no save file in this slot."
src.inprocess = 0
if("Slot 2")
src.saveslot = 2
if(fexists("Save/[src.ckey][src.saveslot]"))
del("Save/[src.ckey][src.saveslot]")
src.inprocess = 0
else
src << "There is no save file in this slot."
src.inprocess = 0
if("Slot 3")
src.saveslot = 3
if(fexists("Save/[src.ckey][src.saveslot]"))
del("Save/[src.ckey][src.saveslot]")
src.inprocess = 0
else
src << "There is no save file in this slot."
src.inprocess = 0
else
src << "Please finish what you are doing before starting another task."


Problem description:
runtime error: bad del
proc name: Deletechar (/mob/proc/Deletechar)
usr: CYN (/mob)
src: CYN (/mob)
call stack:
CYN (/mob): Deletechar()
Encartia (/obj/DELETE): Click(Encartia (3,11,2) (/turf/SPLASH), "mapwindow.map", "icon-x=28;icon-y=12;left=1;scr...")


It won't delete the file. I know I'm doing it all wrong so for the love of god help me delete the damn save file -.-
You're deleting a string, not a file.
In response to Popisfizzy
Another small problem when I tried to fix it.
Still doesn't work with my fix method.

        Deletechar()
if(!src.inprocess)
switch(input("Which save slot would you like to delete?","Delete",null) in list("Slot 1","Slot 2","Slot 3","Cancel"))
if("Slot 1")
src.saveslot = 1
if(fexists("Save/[src.ckey][src.saveslot]"))
var/savefile/F = new("Save/[src.ckey][src.saveslot]")
del(F)
src.inprocess = 0
else
src << "There is no save file in this slot."
src.inprocess = 0
In response to CYN
Look up fdel().
In response to Popisfizzy
Thanks :)