SA-MP Forums Archive
Callback limits for RemoveBuildingForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Callback limits for RemoveBuildingForPlayer (/showthread.php?tid=351979)



Callback limits for RemoveBuildingForPlayer - Patrik356b - 17.06.2012

Hello.

I want to remove approx. 1400 objects. However, it seems you can only remove about:
(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.


Re: Callback limits for RemoveBuildingForPlayer - Faisal_khan - 18.06.2012

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


Re: Callback limits for RemoveBuildingForPlayer - Patrik356b - 18.06.2012

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