ID:140839
 
Code:
var/obj/something/a = new()
usr << output(a,"somegrid:[somex],[somey]")


Problem description:
I've got something like this in my codes, but for some reason it won't work well... It outputs the obj I want to the grid, but I can't interact with it in any way...
Also, when I spawn a new obj somewhere, it automatically replaces the obj from the grid and I can interact with the new obj...
This is called garbage collection. The garbage collector sweeps through and finds all of the objects that lack a reference. In this case, your object. It has no references. It's not on the map, it's not in your inventory, etc... So when it comes time, it is garbage collected.

I haven't dealt with this kind of things myself (displaying objects created on the fly on the grid), but I would probably store a reference to the object on the mob or client itself. A special variable, or maybe just a list containing all of the objects that you print on your grid.
In response to Keeth
Problem solved, thx.