ID:174515
 
client/verb
who()
var/mob/M
usr << "People On:"
for(M in world)
if(M == usr)
continue
if(M.key)
usr << M.key

I am using this code it works but when I run my game and click the who verb it says who but doesnt show anyone what am i doing wrong?
Majinveku wrote:
client/verb
who()
var/mob/M
usr << "People On:"
for(M in world)
if(M == usr)
continue
if(M.key)
usr << M.key

I am using this code it works but when I run my game and click the who verb it says who but doesnt show anyone what am i doing wrong?

Verrry close.
use this:
client/verb/who()
usr << "People On:"
for(var/mob/M in world)
if(M.client)
usr << "[M.key]"
In response to JackGuy
Actully what hes using is correct, Majin veku test with more then one person, cause with what you had wont show your self in it (not many games use stuff like this :-)