ID:139217
 
Code:
world
New()
if(!LoginList) LoginList=list()

var/list/LoginList = new/list("Flysbad")

mob/Login()
LoginList+=src.key

mob/verb/LoadList
usr<<LoginList


Problem description:
When I press LoadList, it says /list, and it doesn't show the players ?

var/list/LoginList = new/list()

mob/verb/LoadList()
for(var/mob/M in LoginList)spawn()
src << "[M]"
mob
Login()
LoginList+=src


It will search all players in the LoginList and show you the M(the players).



(Sorry if it's wrong, I'm still a rookie programmer! :P)
In response to TheProductions
It worked, thanks :)
In response to TheProductions
I'm not entirely sure why you have spawn() here, but it's not needed.