A question about DestroyObject. - 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)
+--- Thread: A question about DestroyObject. (
/showthread.php?tid=562625)
A question about DestroyObject. -
De4dpOol - 10.02.2015
Hello,
I am destroying all the server objects, but I have a question: Will it remove all the dynamic Objects too?
pawn Код:
for(new i; i<MAX_OBJECTS; i++)
{
if(IsValidObject(i)) DestroyObject(i);
}
Re: A question about DestroyObject. -
Sergei - 10.02.2015
If you are using dynamic objects (aka streamer), your code will actually remove zero objects (because streamer actually uses per-player object functions). You should use your streamer's functions to remove objects from the server.