ID:138708
 
Code:
mob/verb/Destroy_Itens()
for(var/obj/F in world)
if(F.owner==usr)
del(F)
world<<"debug message"


Problem description:
This code is supposed to destroy all of my items that are in the world, but it only destroy 1 of then, after that the code stops without showing the debug message. Any help?
Muvuca wrote:
Code:
> mob/verb/Destroy_Itens()
> for(var/obj/F in world)
> if(F.owner==usr)
> del(F)
> world<<"debug message"
>

Problem description:
This code is supposed to destroy all of my items that are in the world, but it only destroy 1 of then, after that the code stops without showing the debug message. Any help?

You have set the debug to show after the for, meaning it will only show once.
In response to A.T.H.K
but it does not show at all, not even one time.
In response to Muvuca
Change usr to src.

Also as for the issue, do any of your objects have the Del proc overwritten? Is there an infinite loop there?
In response to Speedro
You should also be using src.name or src.key, I have found using src may cause problems.