RemoveBuildingForPlayer (Everything in the map?)
#1

for(new i = 300; i < 15000; i++)
{
if(IsValidObject(i))
{
RemoveBuildingForPlayer(playerid, i, 0.0, 0.0, 0.0, 6000.0);
}
}

Somehow this is not working, it won't remove every building for the player.
Reply
#2

Maybe there are more than 15000 objects in GTASA (which there surely are).
Reply
#3

IsValidObject checks that the specified object ID is valid, not model ID.
Reply
#4

oh so I should try to use the model id function?
Reply
#5

Yes, I have tried this and there are 17000+ models, try doing 300-20000
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)