Object IDs messed up? (not model IDs!)
#6

If you have code like this your doing something wrong.

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);
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.
Reply


Messages In This Thread
Object IDs messed up? (not model IDs!) - by PawnoQ - 29.11.2014, 13:06
Re: Object IDs messed up? (not model IDs!) - by Blademaster680 - 29.11.2014, 13:40
Re: Object IDs messed up? (not model IDs!) - by PawnoQ - 29.11.2014, 13:49
Re: Object IDs messed up? (not model IDs!) - by Blademaster680 - 29.11.2014, 14:08
Re: Object IDs messed up? (not model IDs!) - by sammp - 29.11.2014, 17:17
Re: Object IDs messed up? (not model IDs!) - by Pottus - 29.11.2014, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)