29.11.2014, 13:06
hi,
ive been creating objects lately.
After a certain time i destroy not needed objects to stay within the samp object limit. (i also use a streamer for custom mapped worlds but i need non dynanic objects at certain parts so players wont fall through it when they spawn as with dynamic objects it sometimes happens that the object is not streamed in fast enough.)
So i create objects like this:
And then when not needed anymore i destroy them like this:
Now the problem is, somehow internally the object IDs seem to be messed up!
Sometimes when i destroy DesertObj[0] then another object is destroyed for example Obj[1] and not how its supposed to be DesertObj[0].
I experience this pretty often, is there a fix for it?
Is this a know bug of SAMP?
What can i do?
Would be glad about some hints
thank you.
ive been creating objects lately.
After a certain time i destroy not needed objects to stay within the samp object limit. (i also use a streamer for custom mapped worlds but i need non dynanic objects at certain parts so players wont fall through it when they spawn as with dynamic objects it sometimes happens that the object is not streamed in fast enough.)
So i create objects like this:
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);
DesertObj[0]=CreateObject(900, -1425.98315, 3738.58618, 10.87436, 0.00000, 0.00000, 0.00000);
DesertObj[1]=CreateObject(900, -1427.61523, 3790.40039, 10.87436, 0.00000, 0.00000, 0.00000);
pawn Код:
if(IsValidObject(Obj[0]))DestroyObject(Obj[0]);
if(IsValidObject(Obj[1]))DestroyObject(Obj[1]);
if(IsValidObject(DesertObj[0]))DestroyObject(DesertObj[0]); if(IsValidObject(DesertObj[1]))DestroyObject(DesertObj[1]);
Sometimes when i destroy DesertObj[0] then another object is destroyed for example Obj[1] and not how its supposed to be DesertObj[0].
I experience this pretty often, is there a fix for it?
Is this a know bug of SAMP?
What can i do?
Would be glad about some hints
thank you.