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?
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