proc
labeltext(mob/m, label_id, text, text_color="#000")
if(ismob(m))
winset(m,label_id,"text-color=[text_color]")
winset(m,label_id,"text=\"[text]\"")
else CRASH("You did not specify a mob.")
mob
verb
Who()
set category = "Main"
/*var/tmp/players
for(var/mob/M in world)
if(M.client)
players += 1
usr << "<B>\icon[M][M.key] </b>Level: [M.level]"
usr << "<B>Players online: [players]"*/
var/mob/M
for(M in world)
labeltext(usr,"default.who","Name: [M.name] Level: [M.level] Race: [M.race]")
Problem description:
I can't make the label in the default window list all the players in the world....
Can someone please help me on this.
It only displays my Name, Level and Race.
I need it to display everyones.
You're calling labeltext() one at a time for each user, so each time it is replacing the text that was there before with brand new text.
If you don't want the label to display only one line of text, then you need to call labeltext() with all of the text you do want it to show.
Lummox JR