17.06.2012, 22:01
Hello.
I want to remove approx. 1400 objects. However, it seems you can only remove about:
* 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.
Note that these limits are not mentioned on the wiki.
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
* 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.