Callback limits for RemoveBuildingForPlayer
#1

Hello.

I want to remove approx. 1400 objects. However, it seems you can only remove about:
  • 170 objects with OnPlayerConnect
  • 340 objects with OnPlayerSpawn *
  • 230 objects with OnPlayerRequestSpawn *
  • 590 objects with OnPlayerRequestClass *
  • 0 (none) objects in a function, with/without timer
  • 0 (none) objects in a command
(Which is a total ~1330 objects that can be removed)

* Means the player will have their game frozen (and/or possibly crashed) next time this callback is called for that player.
(That is if you call RemoveBuildingForPlayer again)

Note that if you remove more objects than these limits, you will either have invisible objects and/or players will crash/freeze.

pawn Код:
SetTimer("DestroyBuildings", 4000, true); // Timer?

public DestroyBuildings()
{
    new h,m,s; gettime(h, m, s);
    printf("DestroyBuildings( <%d:%d:%d> ) was called", h, m, s);
    foreach(Player, playerid)
    {
        RemoveBuildingForPlayer(playerid, 3503, 2431.7031, 1884.0078, 8.5156, 0.25);
        //-----------------------------------------------------------------------------//
    }
    return 1;
}

Note that these limits are not mentioned on the wiki.
Reply
#2

If the object id is same for all then you can try increasing the radius .
Reply
#3

It's a lot of different objects so that isn't much help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)