Quote:
Originally Posted by TwinkiDaBoss
Its later on destroyed simply
PHP код:
for(new i = 0; i < sizeof(TestObject); i++) {
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 5, X, Y, Z)) {
DestroyDynamicObject(TestObject[i]);
}
}
|
I knew it. You have to reset the value of TestObject and you should be good to go, also add a detection if TestObject = invalid_object_id then cancel the process.