ID:261430
 
Ok i want it to say for (new)var mob as mob or obj or turf in oview(view()) Now i put for(var/mob/M|obj|turf in oview(view())) does n e 1 know whats wrong?
Try this.

for(var/mob/M as mob|obj|turf|area in view())
You should define what you want to do a little more clearly. oview() and view() are used seperately and do two different things.

As for the first part of your loop you need the as (like Super16 said) but you should use atom instead of mob like this:

for(var/atom/A as mob|obj|turf in oview(1))

That will give you all objects, mobs, and turfs within 1 square of the usr.