ID:144888
 
Code:
mob
Stat()
if(!banstat)
if(show_ingame_players)
statpanel("Playing Clients")
Stat("In Turn Order")
for(var/mob/MK in world)
if(MK.Ingame)
if(turn1=="[MK]")
stat(MK)
suffix="Money:[MK.Money]"
if(turn2=="[MK]")
stat(MK)
suffix="Money:[MK.Money]"
if(turn3=="[MK]")
stat(MK)
suffix="Money:[MK.Money]"
var
show_ingame_players=0


Problem description:
Problem is,everytime show_ingame_players is set to 1,the game winodow just closes down.

Notice that little Stat() you called after statpanel()? That should be stat(), not Stat() like the first one. You're little turn thing is kinda odd too... You should try using a list for that.

stat("Turn Order")
for(var/mob/M in turnlist)
if(M.ingame)
stat(M)
stat("Money: [M.Money]")

Just make sure each player's turnlist list is set.

-Exophus
In response to Exophus
He also forgot to call the parent directly after Stat().

mob
Stat()
..()
statpanel("etc")
In response to Pyro_dragons
I didn't spot that, hehe. :P

-Exophus