SA-MP Forums Archive
Why do we destroy textdraws? - 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: Why do we destroy textdraws? (/showthread.php?tid=577707)



Why do we destroy textdraws? - Ritzy2K - 13.06.2015

Im not able to figure out why do we destroy textdraws under OnGameModeExit() or filterscript one.

When the gamemode is shutting down why care destroying it?

Sorry for my bad english.


Re: Why do we destroy textdraws? - Sawalha - 13.06.2015

i think be cause it contributes in gm performance consumption, or when it ends while textdraws are still not destroyed / when server starts again, it starts slowly?
i'm not sure about this(i think it's false) .. but that's what i guess
actually, i just say "get rid of the thing you don't need better"


Re: Why do we destroy textdraws? - Ritzy2K - 13.06.2015

Why will the servet start slowly? textdraws arent saved anywhere? it should destroy them itself when gamemode shuts down cause when gamemode is restarted textdraws are re created?

i think they just consume lines in the script... i dont find any reason to destroy them.


Re: Why do we destroy textdraws? - GuyYahood1 - 13.06.2015

Limit? If you will do GMX.


Re: Why do we destroy textdraws? - Sawalha - 13.06.2015

public textdraws don't destroy themselves automatically, but player textdraws do
so, when the server ends, it means everything ends, and so, since the general textdraws don't destroy themselves, you have to do it


Re: Why do we destroy textdraws? - Ritzy2K - 13.06.2015

How? so why are they created Again in OnGameModeInit when they werent even destroyed?

How come they save themself?


Re: Why do we destroy textdraws? - Ritzy2K - 14.06.2015

anyone else? i cant really figure out.