ID:662932
 
(See the best response by LordAndrew.)
Code:
    New()
..()
spawn(800)SPAWN()
spawn(100)Earth_Dragonball_Spawn(180)
spawn(100)Namek_Dragonball_Spawn(180)
spawn(100)Black_Dragonball_Spawn(180)
spawn(18000)World_Revive()
spawn(300)Saga_Chooser()
spawn(100)ServerAI()
spawn(0)AUTOTOURNY()
log="Log.txt"
worldstarted=1
//spawn(5)AutoChecker()
Del()
for(var/mob/PC/M in world)if(M.client)del(M)
..()
mob/Login()
if(!worldstarted)
worldstarted=1
spawn(800)SPAWN()
spawn(100)Earth_Dragonball_Spawn(180)
spawn(100)Namek_Dragonball_Spawn(180)
spawn(100)Black_Dragonball_Spawn(180)
spawn(18000)World_Revive()
spawn(300)Saga_Chooser()
spawn(100)ServerAI()
spawn(0)AUTOTOURNY()
..()


world
proc
AutoRelogDelay(K)
set background = 1
if(!RelogDelay.Find(K))
RelogDelay.Add(K)
spawn(100)RelogDelay.Remove(K)
SPAWN()
set background=1
spawn while(1)
world.Repop()
players=0
var/warcount=0
var/chlger
var/arenacount=0
for(var/obj/techs/O in world)
if(O.owner==null||!O.owner||O.owner=="")
del(O)
for(var/mob/M in world)
if(M.challenger!=""||M.challenger!=null)
chlger=M.challenger
for(var/mob/M2 in world)
if(M2==chlger)
arenacount++
if(M.in_war)
warcount++
if(M.client)
players++
if(!warcount)
gwar_on=0
if(!arenacount)
arena_on=0
UpdatePlayers()
sleep(5)
_month = time2text(world.realtime,"MM")
_day = time2text(world.realtime,"DD")
_hour = time2text(world.realtime,"hh")
_year = time2text(world.realtime,"YYYY")
world.AutoUnbanTimer()
sleep(1200)

ServerAI()
while(world)
sleep(2000)
world<<"\red[AI]:\font Please register on our <a href=[forums]>Forums</a>."
sleep(2000)
world<<"\red[AI]:\font Be sure to check out new <a href=[website]>Website</a>."
sleep(2000)
// world<<"\red[AI]:\font Want to help out the game and gain rewards? Check this out: <a href=[other]>Website</a>."
sleep(20)
continue

AUTOTOURNY()
StartCountdown()
sleep(36000)
AUTOTOURNY()
if(!tournament)
world << "<font color=white>Automatic Tournament starting in 3..."
sleep(10)
world << "<font color=white>Automatic Tournament starting in 2..."
sleep(10)
world << "<font color=white>Automatic Tournament starting in 1..."
sleep(10)
if(!tournament)
AutoStartTourney()
else
world<<"<font color=white>Tournament has been cancelled!"
UpdatePlayers()
world.status="<font size = -2><B><font color = white>Dragonball Transcended Warriors</b><br><b>Version:</b> 2.0<br><b>Players:</b> [players]<br>Server [Server]."


Problem description:
Dragonball wa.dm:47:error: SPAWN: undefined proc
Dragonball wa.dm:48:error: Earth_Dragonball_Spawn: undefined proc
Dragonball wa.dm:49:error: Namek_Dragonball_Spawn: undefined proc
Dragonball wa.dm:50:error: Black_Dragonball_Spawn: undefined proc
Dragonball wa.dm:51:error: World_Revive: undefined proc
Dragonball wa.dm:52:error: Saga_Chooser: undefined proc
Dragonball wa.dm:53:error: ServerAI: undefined proc
Dragonball wa.dm:54:error: AUTOTOURNY: undefined proc

Dragonball wa.dmb - 8 errors, 0 warnings (double-click on an error to jump to it)

It doesnt give me errors on this part of the code
    New()
..()
spawn(800)SPAWN()
spawn(100)Earth_Dragonball_Spawn(180)
spawn(100)Namek_Dragonball_Spawn(180)
spawn(100)Black_Dragonball_Spawn(180)
spawn(18000)World_Revive()
spawn(300)Saga_Chooser()
spawn(100)ServerAI()
spawn(0)AUTOTOURNY()
log="Log.txt"
worldstarted=1
//spawn(5)AutoChecker()
Del()
for(var/mob/PC/M in world)if(M.client)del(M)
..()

but gives me errors on this part
mob/Login()
if(!worldstarted)
worldstarted=1
spawn(800)SPAWN()
spawn(100)Earth_Dragonball_Spawn(180)
spawn(100)Namek_Dragonball_Spawn(180)
spawn(100)Black_Dragonball_Spawn(180)
spawn(18000)World_Revive()
spawn(300)Saga_Chooser()
spawn(100)ServerAI()
spawn(0)AUTOTOURNY()
..()

Best response
You need to append world to the beginning of the procedures under mob/Login(), as those procedures are defined as world procs.
thnx :)
The first set are likely defined under world/New(), so they can access world/SPAWN() through src (which is implicitly prepended to the calls when appropriate).

The set defined under mob/Login() belong to the mob type. The mob type does not have a SPAWN() process defined for it (the world type does). You need to specify that you're trying to access world/SPAWN().

This is about as basic as it gets, so if you're having trouble grasping how types work, I would suggest you reread the guide or some of the other material available.