ID:177232
 
It would really help me out a lot if I knew how to make a who proc for my browser. Sort've like when you log in and a browser pops up with a bunch of options that say, "Log into game", "See who's online", ect.. So how could I make it show everybody that's online on the browser popup? Oh well, I hope somebody answers me. :P
cleint/verb/Who()
var/html = "--WHO'S LOGGED ON?--/n"
for(var/client/C in world)
html += "- [C]"
if(C.mob.name != C.key) html += " ([C.mob.name])"
html += "\n"
src << browse(html)

That should work alright for you, I think. I just forget whether it's /n or \n, so if it isn't making new lines properly switch the forward slash to a backslash. Good luck!
In response to Lord of Water
"\n" won't display in the browser, actually, because HTML ignores stuff like that. You'll have to change it to "
" for the line break to actually appear.

-AbyssDragon
In response to AbyssDragon
The forums interpret that tag. Here it is:
<br>
In response to ACWraith
D'oh... stupid me.

-AbyssDragon
In response to AbyssDragon
& lt; and & gt; work better (without the space)

<br>