ID:144466
 
Code:
    Reporter
density = 1
opacity = 0
var/available = 1
DblClick()
if (src.available <= 2)
usr <<"Welcome to the game! I'll teleport you to your appropriate building."
usr <<"You are: Reporter"
usr.loc = locate(8,9,1)
else
src.NotAvailable()

proc
NotAvailable()
if (src.available == 2)
del (src)
usr <<"Sorry, we have the limit of this job!"
usr.loc = locate(50,31,2)


Problem description:

loading Life and Death.dme
Life and Death.dm:1502:error:src.available:undefined var

Life and Death.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

I defined var/available for the mob AND the object. What's wrong?
      Reporter
density = 1
opacity = 0
DblClick()
if (src.available <= 2)
usr <<"Welcome to the game! I'll teleport you to your appropriate building."
usr <<"You are: Reporter"
usr.loc = locate(8,9,1)
else
src.NotAvailable()

proc
NotAvailable()
if (src.available == 2)//Try changing src to usr if the bottom dosen't work.
del (src)
usr <<"Sorry, we have the limit of this job!"
usr.loc = locate(50,31,2)

mob/var/available
obj/var/available