Remove all SA objects
#7

Quote:
Originally Posted by RealCop228
View Post
Could you make a loop through all object models and then run this on a 50-100ms interval? Something like this, maybe?

pawn Code:
for(new model = 0; model < sizeof(objectModelArray); model++)
{
    defer removeBuildingsOnInterval(playerid, model);
}
   
timer removeBuildingsOnInterval[100](playerid, model) return RemoveBuildingForPlayer(playerid, model, 0.0, 0.0, 0.0, 9999.9999);
I tried to use your code, but when I added my object array it gives some errors (I never used y_timers before :$)
Code:
error 017: undefined symbol "removeBuildingsOnInterval_yT@"
error 029: invalid expression, assumed zero
error 017: undefined symbol "removeBuildingsOnInterval_yT@"
error 001: expected token: ";", but found "return"
fatal error 107: too many error messages on one line
The error lines is the code you posted (with my sizeof(allObjects) thingie)


Quote:
Originally Posted by Sithis
View Post
Won't work i believe, there's a limit on how many RemoveBuildingForPlayer you can do, a 1000 i believe.
Hmm, you could be right, but I haven't found any page describing a limit for it yet
Reply


Messages In This Thread
Remove all SA objects - by Jstylezzz - 12.04.2013, 19:37
Re: Remove all SA objects - by Pottus - 12.04.2013, 19:41
Re: Remove all SA objects - by iJumbo - 12.04.2013, 19:42
Re: Remove all SA objects - by Scenario - 12.04.2013, 19:43
Re: Remove all SA objects - by Jstylezzz - 12.04.2013, 19:45
Re: Remove all SA objects - by Sithis - 12.04.2013, 19:45
Re: Remove all SA objects - by Jstylezzz - 12.04.2013, 19:53
Re: Remove all SA objects - by Vince - 12.04.2013, 20:30
Re: Remove all SA objects - by Jstylezzz - 12.04.2013, 20:33
Re: Remove all SA objects - by Scenario - 12.04.2013, 20:36
Re: Remove all SA objects - by Jstylezzz - 12.04.2013, 21:10
Re: Remove all SA objects - by Basssiiie - 12.04.2013, 22:42
Re: Remove all SA objects - by MP2 - 12.04.2013, 23:58
Re: Remove all SA objects - by Jstylezzz - 13.04.2013, 09:15
Re: Remove all SA objects - by LevPopov - 03.12.2013, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)