Destroying all objects at once
#1

Title says all, how can i do this?
Reply
#2

are you using a streamer?
Reply
#3

^^If you use streamers, there tends to be functions that allow you to delete all objects at once.
Reply
#4

And if you aren't using a streamer, I don't see why this shouldn't work :
Код:
for(new i=0;i<MAX_OBJECTS;i++)
{
   DestroyObject(i);
}
Reply
#5

Quote:
Originally Posted by DJDhan
And if you aren't using a streamer, I don't see why this shouldn't work :
Код:
for(new i=0;i<MAX_OBJECTS;i++)
{
  DestroyObject(i);
}
thats what i was thinking, but i didn't know if there was MAX_OBJECT lol, anyways that should work
Reply
#6

pawn Код:
for(new i=0; i<MAX_OBJECTS; i++)
{
DestroyObject(i);
}

If you use a streamer change the "MAX_OBJECTS to the streamed definition, and also "DestroyObject" to the streamed function.

EDIT: Aww, DJDhan was faster.
Reply
#7

and for vehicles?
Reply
#8

pawn Код:
for(new i=0; i<MAX_VEHICLES; i++)
{
DestroyVehicle(i);
}
If you use a streamer change the "MAX_VEHICLES to the streamed definition, and also "DestroyVehicle" to the streamed function.
Reply
#9

Tyvm Jeffry and DJDhan
Reply
#10

Quote:
Originally Posted by FuTuRe`
and for vehicles?
Код:
for(new i=0; i<MAX_VEHICLES;i++)
{
  DestroyVehicle(i);
}
Easy isn't it?

EDIT: Your welcome (Jeffrey was faster )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)