You don't need to delete actors if u use streamer plugin. They 'r automagicly deleted/creatated and don't occupy a slot in default actor? -POOL?? - ( when not visable ).
I'd say delete dynamic actors this way only if they are usless/random.
Now, we have multiple mistakes in your code.
for(new i = 0; i < MAX_PLAYERS 1; i) >> for(new i = 0; i < MAX_PLAYERS; i)
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? break;
? ? ? ? }
>>>
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? return 0; // or 1
? ? ? ? }
And, consider adding IsPlayerConnected.
I'd say delete dynamic actors this way only if they are usless/random.
Now, we have multiple mistakes in your code.
for(new i = 0; i < MAX_PLAYERS 1; i) >> for(new i = 0; i < MAX_PLAYERS; i)
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? break;
? ? ? ? }
>>>
? ? ? ? if (IsDynamicActorStreamedIn(shopactor[virtualworldid], i))
? ? ? ? {
? ? ? ? ? ? print("streamed");
? ? ? ? ? return 0; // or 1
? ? ? ? }
And, consider adding IsPlayerConnected.