ID:140577
 
Code:
/mob/other/login_character
Login()
world<<"[src] is at the login menu..."
src.sight=0
spawn()
src.choose_character()
proc
choose_character()
var/list/characters = src.character_list()
var/new_character_choice= "New Character"
var/delete_character_choice="Delete Character"
var/list/menu = new()
menu+=characters
menu+=new_character_choice
menu+=delete_character_choice

var/result = input(src,"Character Creation", "Randian") in menu
if (result == new_character_choice)
src.create_new_character()
if (result == delete_character_choice)
src.delete_character()
src.choose_character()
else
var/success = src.client.LoadMob(result)

if (success)
del(src)
else
alert(src,"Bug: Reporting to autobug file..")
src.choose_character()


Problem description:
I receive this error every time I log in

runtime error: bad client
proc name: choose character (/mob/other/login_character/proc/choose_character)
source file: Character Creation.dm,44
usr: Rikishi (/mob/other/login_character)
src: Rikishi (/mob/other/login_character)
call stack:
Rikishi (/mob/other/login_character): choose character()
Rikishi (/mob/other/login_character): choose character()
Rikishi (/mob/other/login_character): Login()


Any suggestions or should I just ignore it o and line 44 is this

var/result = input(src,"Character Creation", "Randian") in menu
Your second if() statement needs to be else if(). It's trying to load a character named "new character" after creating a new character.

You also need to be more thorough with your descriptions in the future. It's rather important to mention details such as EXACTLY when the error occurs (in this case, AFTER you select "New Character"), seeing as I spent far too much time trying to figure out how you could get that error otherwise.
In response to Garthor
Well after changing the second if to else if. the error still occurs