proc
GetPlayer(message = "Use this on who?",list/List= world,var/mob/creating_character/Default)
var/list/options = list()
for(var/mob/creating_character/m in List)
if(!m.client || m.name == "????" || !m.name) continue
if(m == usr)
usr << "Nobody is online right now!"
return
var/info = "[m.name] / (Key: [m.key])" //[Statment ? "If True" : "If False"]
if(m == Default) Default = info
options[info] = m
var/mob/M = input("[message] ([length(options)] Players)",,Default) as anything in options
if(!M) return 0
M = options[M]
options = list()
return M
Problem description:
So I've been trying to keep the usr out of the list and it works fine however when you're the only one online it just selects something like "player 0" it'll say on the alert message that I had show [m]'s name. I tried 'break' and 'return' but it just sends the message out and keeps going with the code. Thanks for the help!