ID:262485
 
Code:
mob
bkadmin
verb
Start_Budokai()
set category = "Budokai Admin"
for(var/mob/M in world)
if(M.client)
M.verbs += budokai
world << "<b><font color = 'red'>Budokai signups have begun!"

End_Budokai_Signups()
set category = "Budokai Admin"
world << "<b><font color = 'red'>Budokai signups have ended!"
for(var/mob/M in world)
world << "<b><font color = 'red'>Budokai signups have ended!"
if(M.client)
M.verbs -= budokai
world << "<b><font color = 'red'>Budokai signups have ended!"


Problem description:

runtime error: wrong type of value for list
proc name: Start Budokai (/mob/bkadmin/verb/Start_Budokai)
source file: Budokai.dm,11
usr: <FONT COL... (/mob/characters/saiyajin)
src: <FONT COL... (/mob/characters/saiyajin)
call stack:
<FONT COL... (/mob/characters/saiyajin): Start Budokai()
runtime error: Cannot read null.vars
proc name: Edit (/mob/Admin/verb/Edit)
source file: Police.dm,785
usr: <FONT COL... (/mob/characters/saiyajin)
src: <FONT COL... (/mob/characters/saiyajin)
call stack:
<FONT COL... (/mob/characters/saiyajin): Edit(null)

I get this error when I try to use the Start_Budokai verb and when I try to use the End_Budokai_Signups verb it repeats "Budokai signups have ended!" a lot. Can anyone tell me how to fix this?

End_Budokai_Signups()
set category = "Budokai Admin"
world << "Budokai signups have ended!"
for(var/mob/M in world)
world << "Budokai signups have ended!"
if(M.client)
M.verbs -= budokai
world << "<b><font color = 'red'>Budokai signups have ended!"


for() loops what you have dont use world << "Budokai signups have ended!" use M<< "Budokai signups have ended!"
In response to Nintendo
It's inefficient anyway. Just have the
world << "<font color = 'red'>Budokai signups have ended!"
outside of the for() loop.
In response to Elation
Elation wrote:
It's inefficient anyway. Just have the
world << "<font color = 'red'>Budokai signups have ended!"
outside of the for() loop.

</font>
Closing font tags help also. =P
In response to N1ghtW1ng
N1ghtW1ng wrote:
Closing font tags help also. =P

Do as I say, not as I do. ;)