ID:141411
 
Code:
Who()
set name = "Who's Online"
var/tmp/C = 0
var/tmp/C2 = 0
var/gmc
winshow(usr, "whos", 1)
winset(usr, "names", null)
winset(usr, "keys", null)
winset(usr, "races", null)
winset(usr, "connecting", null)
winset(usr, "names", "cell-span=1,0")
winset(usr, "keys", "cell-span=1,0")
winset(usr, "races", "cell-span=1,0")
for(var/mob/M in world)
if(M.client&&M.ingame)
if(M.GM==3){gmc="Owner"}
if(M.GM==2){gmc="Admin"}
if(M.GM==1){gmc="GM"}
C++
winset(usr, "races", "current-cell=[C]")
winset(usr, "names", "current-cell=[C]")
winset(usr, "keys", "current-cell=[C]")
if(M.GM){usr << output("[M.name]([gmc])", "names");usr << output("[M.key]", "keys");usr << output("[M.race]", "races")}
else{usr << output("[M.name]", "names");usr << output("[M.key]", "keys");usr << output("[M.race]", "races")}
if(M.client&&!M.ingame)
C2++
winset(usr, "connecting", "current-cell=[C2]")
usr << output(M.key, "connecting")
winset(usr, "names", "cells=[C]")
winset(usr, "keys", "cells=[C]")
winset(usr, "races", "cells=[C]")
winset(usr, "connecting", "cells=[C2]")


Problem description: the problem is it all shows well except in the races for some reason it doesnt change line when i put the new current-cell it will put only infront of the race from the player before it