ID:1640471
 
(See the best response by WSHGC.)
Code:
<b>     New Character(var/bypass)
if(fexists("players/[ckey]")==TRUE&&!bypass)
switch(alert(usr,"This will delete your old Character, are you sure you want to continue?","New Character","Yes!","No."))
if("No!")
usr.LoggedIn()
else
usr.NewCharacter(1)
else
var/usr.name = input ("What is your new Character's name? (1-15 Characters long)", "New Character", usr.key) as null|text
if(!Named)
usr.LoggedIn()
return
else</b>








Programming\New Login.dm:51:error: bad argument definition
Off top,

New Character(var/bypass)



should be...

New_Character(var/bypass)


And what's with those b tags?
Best response
Along with what FKI said,

I removed those tags, but how I would've done it(which compiled)

mob
proc
New_Character(var/bypass)
if(fexists("players/[ckey]")==TRUE&&!bypass)
switch(input(usr,"This will delete your old character. Are you sure?") in list("Yes","No"))

if("No")
usr.LoggedIn()

if("Yes")
var/name = input ("What is your new Character's name? (1-15 Characters long)", "New Character", usr.key) as null|text
if(!name)
usr.LoggedIn()


mob/proc/LoggedIn()



But I also done it as so

mob
proc
New_Character(var/bypass)
if(fexists("players/[ckey]")==TRUE&&!bypass)
else
if(alert(usr,"This will delete your old character. Are you sure?","New Character","Yes","No")=="Yes")
switch(input(usr,"This will delete your old character. Are ") in list("Yes","No"))

if("No")
usr.LoggedIn()

if("Yes")
var/name = input ("What is your new Character's name? (1-15 Characters long)", "New Character", usr.key) as null|text
if(!name)
usr.LoggedIn()


mob/proc/LoggedIn()


And instead of when they select "No" and log in, you could return them to that menu. Therefore switching

if("No")
usr.LoggedIn()


to

if("No")
return