29.11.2014, 17:35
If you have code like this your doing something wrong.
You should almost never have to reference consecutive array elements. What you should do is add these objects into some kind of object pool then delete by that pool id. What I think is happening is you don't dereference these variables when you delete then try and delete again without actually referencing new objects so it's deleting any objects with those id's.
pawn Код:
Obj[0]=CreateObject(900, -4473.58203, 3396.04590, 13.41680, 0.00000, 0.00000, 0.00000);
Obj[1]=CreateObject(900, -4473.58203, 3396.04590, 13.41680, 0.00000, 0.00000, 0.00000);