Destroying all objects at once - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Destroying all objects at once (
/showthread.php?tid=155772)
Destroying all objects at once -
iStarzz - 19.06.2010
Title says all, how can i do this?
Re: Destroying all objects at once -
Anthony_Brassi - 19.06.2010
are you using a streamer?
Re: Destroying all objects at once -
Antonio [G-RP] - 19.06.2010
^^If you use streamers, there tends to be functions that allow you to delete all objects at once.
Re: Destroying all objects at once -
DJDhan - 19.06.2010
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);
}
Re: Destroying all objects at once -
Anthony_Brassi - 19.06.2010
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
Re: Destroying all objects at once -
Jeffry - 19.06.2010
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.
Re: Destroying all objects at once -
iStarzz - 19.06.2010
and for vehicles?
Re: Destroying all objects at once -
Jeffry - 19.06.2010
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.
Re: Destroying all objects at once -
iStarzz - 19.06.2010
Tyvm Jeffry
and DJDhan
Re: Destroying all objects at once -
DJDhan - 19.06.2010
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
)