mob/player
verb/random_crap()
var/mob/player/P
for(P in view(0))
P << "randomcraphere"
but whenever i try this:
P -= usr
it gives me a runtime error. the Remove() proc doesn't work either (this:)
P.Remove(usr)
that doesn't work because DS doesn't even recognize the remove proc.
point is, I need to take the usr out of that list and i'm either too dumb or too sleepy to figure out how. just seems like a though task as the usr is obviously in its view(0), but i want all player mobs except the usr himself to receive the "randomcraphere". pls halp
You also don't need to define P on the line above the loop.
But for future reference you can do something like: