Enter(mob/A)
if(ismob(A))
if(A.enteredd == 2)
var/mob/M = A
if(A.client)
M.loc = locate(5,2,35)
M.enteredd=1
A.loc=locate(5,2,35)
A.enteredd=1
if(A.enteredd == 1)
var/mob/M = A
if(A.client)
M.loc = locate(21,8,1)
M.enteredd=2
A.loc=locate(21,8,1)
A.enteredd=2
else
if(istype(A,/obj/)) del(A)
Problem description:
The code works backwards instead of entered setting 2 to one 2 sets to 2 and instead of 1 setting to 2 it sets to 1
The rest of the problem you're having is because you're not using else before that second if().
Lummox JR