ID:261680
 
When I use the who command, it firstly doesn't do anything. Secondly it Crashes my Dream Seeker. Heres the code:
mob
verb
Who(M as mob in world)
src << "Players Online:"
for(M in world)
src << "Name: [M] Icon: [icon] Muted: [Muted] Status: [status]"
M has no type value so it loops through every data type in the game, you'd be better off doing this,

mob/verb/Who()
src << "<u>Players Online:"
for(var/mob/m as mob in world)
if(m.client)
src << "Name: [m] Icon: \icon[m.icon] Muted: [m.muted]Status: [m.status]"
continue
else continue
You don't need the M as mob in world in the verb declaration. You just need to loop through the mobs in the verb itself:
<code> mob verb Who() usr << "Players Online:" for(var/mob/M in world) usr << "Name: [M] Icon: \icon[M.icon] Muted:[M.Muted] Status: [M.status]" </code>
In response to OneFishDown
Even better:

<code>mob/verb/who() src << "Players Online:" for (var/client/C) src << "Name: [C.key] Icon: \icon[C.mob] Muted:[C.mob.Muted] Status: [C.mob.status]"</code>

That's the shortest (in terms of code) and most efficient way I've found to loop through all the players in the world.