ID:263017
 
mob/verb/Delete()
set hidden = 1
var/firstletter=copytext(src.ckey, 1, 2)
if(!fexists("players/[firstletter]/[src.ckey].sav")) {src<<"You don't have any previous saved characters.";return}
if(alert("Would you like to delete your character?\nYour character will be gone forever.","Deletion","Yes","No")=="Yes")
if(fdel("players/[firstletter]/[src.ckey].sav")) src<<"Your character file was deleted successfully."
else src<<"Deletion of your character file failed."


I need help in finishing this code so once the clients deleted there save file it loops back to the ChooseCharacter()

Pvt.Sampson wrote:
mob/verb/Delete()
> set hidden = 1
> var/firstletter=copytext(src.ckey, 1, 2)
> if(!fexists("players/[firstletter]/[src.ckey].sav")) {src<<"You don't have any previous saved characters.";return}
> if(alert("Would you like to delete your character?\nYour character will be gone forever.","Deletion","Yes","No")=="Yes")
> if(fdel("players/[firstletter]/[src.ckey].sav")) src<<"Your character file was deleted successfully."
> else src<<"Deletion of your character file failed."
>

I need help in finishing this code so once the clients deleted there save file it loops back to the ChooseCharacter()

mob/verb/Delete()
set hidden = 1
var/firstletter=copytext(src.ckey, 1, 2)
if(!fexists("players/[firstletter]/[src.ckey].sav")) {src<<"You don't have any previous saved characters.";return}
if(alert("Would you like to delete your character?\nYour character will be gone forever.","Deletion","Yes","No")=="Yes")
if(fdel("players/[firstletter]/[src.ckey].sav")) {src<<"Your character file was deleted successfully.";src.ChooseCharacter()}
else src<<"Deletion of your character file failed."
In response to Crzylme
You forgot {}
In response to Mysame
Where do I add the {}?

PS:Is there a problem with the forums?I clicked the 'Post' button a few times and nothing happened.After a while it posted along with 3 identical posts.
In response to Pvt.Sampson
It was directed at Crzylme, and he already fixed it.