ID:926838
 
Keywords: issue, world
Code:
world
icon_size=32
name = "Naruto Data Squad"
loop_checks=1
view=8
tick_lag=1
loop_checks=1
view=8
New()
..()
spawn(1) Geninexam()


var
Genintime = 0
Geninexam = 0

world
proc
Geninexam()
if(Genintime)
for(var/mob/G in world)
if(G.client&&G)
if(G.Genintest&&G)
if(G.score>=10&&G)
if(G)
G<<"Parabéns você passou no exame Genin com [G.score] pontos"
G.tested=1
G.score=0
G.move=0
else
if(G)
G<<"Você ficou reprovado no exame Genin com ([G.score]) pontos"
G.tested=0
G.score=0
G.move=0
Genintime=0
world<<"<font size=2><font color=red>Exame Genin Finalizado."
spawn(10000) world.Geninexam()
else
world<<"<font color=Green>Exame Genin em 5 minutos"
sleep(600)
world<<"<font color=Green>Exame Genin em 4 minutos"
sleep(600)
world<<"<font color=Green>Exame Genin em 3 minutos"
sleep(600)
world<<"<font color=Green>Exame Genin em 2 minutos"
sleep(600)
world<<"<font color=Green>Exame Genin em 1 minutos"
sleep(600)
world<<"<font color=Green>Exame Genin Começou."
Genintime=1
spawn(1000) Geninexam()


Problem description:
The proc genin exam is not working, could someone please help me
Try removing world from it and just setting it as a regular proc.
What isn't working about it exactly? Are you receiving some sort of error or does the procedure just not do anything?
Does not run
Check if you have world/New() defined anywhere else and forgot to call ..()
In response to DarkCampainger
thanks man!