ID:177803
 
turf
teamblue
Enter(var/mob/M)
if(M.team!="blue")
M << "Blue team members only!"
return 0
else
usr.loc = src

turf
teamred
Enter(var/mob/M)
if(M.team!="red")
M << "Red team members only!"
return 0
else
usr.loc = src



loading Bee Blast.dme
Bee Blast.dm:158:error:usr.loc:undefined var
Bee Blast.dm:158:error:src:undefined var
Bee Blast.dm:167:error:usr.loc:undefined var
Bee Blast.dm:167:error:src:undefined var

Bee Blast.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)
in your enter remove the var/mob/M just put mob/M

RaeKwon
Isn't this about the millionth time you've posted a movement proc with usr in it? There's your problem right there. If you wrote it right in the first place, you wouldn't be having those errors. Setting loc directly in Enter() isn't a great idea either.

One other thing I can recommend: Give things a color or team var instead of creating lookalike types for blue and red. That's a lot of redundant code you have. It could look like this instead:
turf/team
var/color

Enter(atom/movable/A)
if(ismob(A))
var/mob/M=A
if(M.color!=color)
M << "Only [color] team members can enter!"
return 0
return ..()

Lummox JR