Hi, im creating an editor and i found a problem like this. My program is actually able to create objects but now i need to delete some random object by stack (array)!
so i declared the object type:
type FloorQuadra
filepath as string
blocknumX as integer
blocknumZ as integer
Level as integer
endtype
the routine to put file .x into the array stack:
make_floors:
for count_el = 1 to WP
if file exist(FloorQuad(count_el).filepath) = 1
nObj = nObj+1
load_obj(FloorQuad(count_el).filepath, FloorQuad(count_el).blocknumX, FloorQuad(count_el).blocknumZ, FloorQuad(count_el).Level, 0, "Floor", nObj)
endif
next count_el
return
well!! now, in the main loop when i try to delete last object of the stack is fine, but when i delete an object randomly i got problem with the rest of the code!!
i use:
nObj is the number of object variable (last object)
delete object nObj
nObj = nObj - 1
but if i try to do this:
delete object 15
nObj = nObj - 1
ERROR!!
any help???
thanx a lot





www.myspace.com/spacekhappa
www.khappa.com