Posts: 84
Threads: 7
Joined: Aug 2013
Reputation:
0
16.06.2015, 19:40
(
Last edited by theYiin; 16/06/2015 at 08:20 PM.
)
So you can restart gamemode with rcon command gmx, without recreating same textdraws on top of the old ones.
EDIT: nvm, it's not true, I just tested it, and indeed global textdraws are destroyed automatically when gamemode exists, not when server closes.
Posts: 194
Threads: 29
Joined: Jul 2013
Reputation:
0
I destroy those textdraws so they don't bug when I restart the server (for me).
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
How will they even bug? when the gamemode exit arent they suppose to destroy themself? and when the gamemode intialises again they ll re create themself?
Posts: 929
Threads: 17
Joined: Mar 2012
Reputation:
0
its common practice to run "clean up" code when exiting any app.
its simple if you dont want to destroy them then dont...
if the abstract machine("server") gets shut down surly everything will be closed/destroyed.
I still will destroy mine.
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
28.06.2015, 18:03
(
Last edited by Ritzy2K; 27/12/2017 at 09:54 AM.
)
What makes the difference if i destroy or not tho? (im not taunting or trolling)
I just need to make sure my coding practices are as optimized as they can be.