06.05.2015, 00:24
new Float
,Float:y,Float:z;
GetActorPos(ActorID[i],x,y,z);
DestroyActor(ActorID[i]);
ActorID[i]=CreateActor(ActorSkin[i],x,y,z,ActorAngle[i]);
You destroy the actor - and then you immediately make another one after it's been destroyed.
? Just remove the last CreateActor line?
Or add: ActorCreated[ActorID]==0; under the 'DestroyActor' ?

GetActorPos(ActorID[i],x,y,z);
DestroyActor(ActorID[i]);
ActorID[i]=CreateActor(ActorSkin[i],x,y,z,ActorAngle[i]);
You destroy the actor - and then you immediately make another one after it's been destroyed.
? Just remove the last CreateActor line?
Or add: ActorCreated[ActorID]==0; under the 'DestroyActor' ?