Code:
mob/host
verb
Check_For_AFK()
set category = "GM"
world << "<center><b><font size=2><font color=#FF4466>AFK Check!"
for(var/mob/M in world)
M.AFK_Check()
mob/proc
AFK_Check()
for(var/mob/M in world)
M.said = 0
var/talk = input(M,"Type something, or be booted.")as null|text
if(M.talk)
M.said = 1
world << "[M] has been checked. He/she will not be booted."
else if(!talk)
sleep(600)
world << "<center><b><font size=2><font color=#FF4466>AFK Check has been completed."
if(!M.talk)
world << "[M] has been booted off for being AFK."
sleep(10)
del(M)
Problem description:Getting undefined var can anyone help me out
Read what the error says, undefined var. You did not define a var. You can figure that out yourself easily as I rather not give you the exact answer since this isn't your snippet.