ID:264746
 
Code:
mob
proc
UpdatePlayers()
winset(src,"Who.people","cells=0x0")
src << output("<center>>Name","Grid:1,1")
src << output("<center>Key","Grid:2,1")
src << output("<center>Level","Grid:3,1")
src << output("<center>Race","Grid:4,1")
src << output("<center>Class","Grid:5,1")
var/row=1
for(var/mob/M in world)
if(M.client)
row++
src << output("<center><font size =1>[M.Named]","Grid:1,[row]")
src << output("<center><font size =1>[M.key]","Grid:2,[row]")
src << output("<center><font size =1>[M.Level]","Grid:3,[row]")
src << output("<center><font size =1>[M.Race]","Grid:4,[row]")
src << output("<center><font size =1>[M.Class]","Grid:5,[row]")
else return


Problem description:This is my first attempt at using a grid. The above proc is what i use to update Who.people, but it is doing absoulty nothing. Im calling the proc when the person bring up the Who window. Any ideas on what im doing wrong?

Who.people and Grid can't be the same thing?
And you could loop for(var/client/C) and use C.mob more efficiently
Also your current code will end as soon as it finds a non player mob
In response to Falacy
Who is the window and people is the gird, how can i not use that? Whats the correct way to do this if i am going about it all wrong?
In response to National Guardsmen
Where it says Grid in the outputs it should say Who.people
In response to Falacy
oh... I feel pretty stupid now.

Thanks for your help.