I think I see the problem there. Instead of GetnextObjectInArea use GetNextObjectInArea. Commenting this part out is the reason it only cleans one at a time, and the small letter n means the command is not understood, resulting in compile errors.
The too many instructions sound like they're the result of a loop. And indeed, you'll get one if you don't cycle through the bags because you're always testing for the first one.
__________________
Say NO to the Trouser Tyranny!
|