ID:143080
 
Code:
mob
if(loc = locate(x))
stuff


Problem description:
It just gives me an Empty Type Name error. What am I doing wrong?

1) You're using the wrong operator. = is assignment, == is comparison.

2) You aren't putting any of this in a proc

3) You haven't actually told us what you want, so all we can do is point out obvious errors.
In response to Garthor
What I want is to be able to run some code if someone happens to go into a certain location on the map, e.g. making someone drown if they run into locate(/turf/water).
In response to Garthor
Never mind, figured it out. I remembered the 'enter' proc.
In response to Darkmag1c1an11
Enter() is the wrong proc, here. Use Entered().