ID:264602
 
Code:
proc/Tournament()
if(Tournament)
return
Tournament=1
for(var/mob/M in world)
M.contents += new /obj/HUD/Tournament
world<<"<font color = blue><b>Event Info: </font><b>Cell Games is now accepting Applications"

sleep(300)
if(!Entries.len)
for(var/mob/P in world)
if(P.client)
P.contents -= new /obj/HUD/Tournament
world<<"0 Players entered, tournament cancelled."
return
world<<"Tournament Entries are now over. Tournament Begining.."
for(var/mob/K in world)
if(K.client)
M.contents -= new /obj/HUD/Tournament

Tournament_AI()


Problem description: When the tournament Stars, Only Who Started it Has the HUD of Tournament the others players no.


> proc/Tournament()
> if(Tournament)
> return
> Tournament=1
> for(var/mob/M in world)
> M.screen += new /obj/HUD/Tournament
> world<<"<font color = blue><b>Event Info: </font><b>Cell Games is now accepting Applications"
>
> sleep(300)
> if(!Entries.len)
> for(var/mob/P in world)
> if(P.client)
> P.screen -= new /obj/HUD/Tournament
> world<<"0 Players entered, tournament cancelled."
> return
> world<<"Tournament Entries are now over. Tournament Begining.."
> for(var/mob/K in world)
> if(K.client)
> K.screen -= new /obj/HUD/Tournament
>
> Tournament_AI()
>

Not sure if this would fix the problem but try it.
Trying to subtract a new object from something's contents isn't going to work. You'll need to use locate() to find the obj that's already in their contents, and then remove (or delete) that.
In response to Garthor
var/obj/HUD/Tournament = locate() Thats?
In response to Revolution Gohan
Looking up locate() in the Reference might help.
In response to Garthor
M.contents(locate(/obj/HUD/Tournament)) This is going to work?
In response to Revolution Gohan
No.