Incognito DestroyDynamicObject help
#1

So, this works.
Код:
public DestroyObjects()
{
DestroyDynamicObject(Thruster1);
DestroyDynamicObject(Thruster2);
DestroyDynamicObject(Thruster3);
DestroyDynamicObject(Thruster4);
DestroyDynamicObject(Thruster5);
DestroyDynamicObject(Thruster6);
//DestroyDynamicObject(Cap1);
//DestroyDynamicObject(Cap2);
//DestroyDynamicObject(Cap3);
//DestroyDynamicObject(Cap4);
DestroyDynamicObject(Cap5);
DestroyDynamicObject(Cap6);
DestroyDynamicObject(Cap7);
DestroyDynamicObject(Cap8);
DestroyDynamicObject(Cap9);
DestroyDynamicObject(Cap10);
DestroyDynamicObject(Cap11);
DestroyDynamicObject(Cap12);
DestroyDynamicObject(Cap13);
DestroyDynamicObject(Cap14);
DestroyDynamicObject(Cap15);
DestroyDynamicObject(Cap16);
DestroyDynamicObject(Cap17);
DestroyDynamicObject(Cap18);
DestroyDynamicObject(Cap19);
DestroyDynamicObject(Cap20);
DestroyDynamicObject(Cap21);
DestroyDynamicObject(Cap22);
DestroyDynamicObject(Cap23);
DestroyDynamicObject(Cap24);
DestroyDynamicObject(Cap25);
DestroyDynamicObject(Cap26);
DestroyDynamicObject(Cap27);
DestroyDynamicObject(Cap28);
DestroyDynamicObject(Cap29);
DestroyDynamicObject(Cap30);
DestroyDynamicObject(Cap31);
DestroyDynamicObject(Cap32);
DestroyDynamicObject(Cap33);
DestroyDynamicObject(Cap34);
DestroyDynamicObject(Cap35);
DestroyDynamicObject(Cap36);
DestroyDynamicObject(Cap37);
DestroyDynamicObject(Cap38);
DestroyDynamicObject(Cap39);
DestroyDynamicObject(Cap40);
DestroyDynamicObject(Cap41);
DestroyDynamicObject(Cap42);
DestroyDynamicObject(Cap43);
DestroyDynamicObject(Cap44);
DestroyDynamicObject(Cap4);
DestroyDynamicObject(Cap50);
DestroyDynamicObject(Cap51);
DestroyDynamicObject(Cap52);
DestroyDynamicObject(Cap53);
DestroyDynamicObject(Cap54);
DestroyDynamicObject(Cap55);
DestroyDynamicObject(Cap56);
DestroyDynamicObject(Cap57);
DestroyDynamicObject(Cap58);
DestroyDynamicObject(Cap59);
DestroyDynamicObject(Cap60);
DestroyDynamicObject(Cap61);
DestroyDynamicObject(Cap62);
DestroyDynamicObject(Cap63);
DestroyDynamicObject(Cap64);
Restream();
}
but this doesnt
Код:
 		if(IsPlayerInRangeOfPoint(playerid,50,30.74976349,1584.64514160,24.30331230))
   		{
   			if(GetPVarInt(playerid, "CLoggedIn") == 1)
			{
   				DestroyDynamicObject(Cap1);
   				Restream();
   				return 1;
			}
Tried to use restream likeso:
Код:
public Restream()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
        Streamer_Update(i);
	}
}
Thinking that maybe the streamer wasnt updating each player when deleting the object, but that didnt work either.
Any help?
Reply
#2

Off course if you have this

pawn Код:
//DestroyDynamicObject(Cap1);
Thats have no effect. Delete the " // " and try -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)