Raised This Month: $51 Target: $400
 12% 

Solved When to use plugin_end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-14-2018 , 21:20   When to use plugin_end
Reply With Quote #1

When to use a forward plugin_end, and for what purpose .. I already read the definition but I still have doubts.

Last edited by iceeedr; 04-28-2018 at 00:48.
iceeedr is offline
Send a message via Skype™ to iceeedr
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-14-2018 , 22:31   Re: When to use plugin_end
Reply With Quote #2

Simply use it when you need code to execute when the map ends. For examples, you can look at existing plugins that use it.
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-14-2018 , 22:51   Re: When to use plugin_end
Reply With Quote #3

An example is when using nvault. The vault file is typically opened in plugin_init or plugin_cfg. You need to close the vault on map change or server shut down so plugin_end() is typically used for this.
__________________
Bugsy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-15-2018 , 09:54   Re: When to use plugin_end
Reply With Quote #4

Most often used for freeing array, trie and other handles.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-15-2018 , 14:13   Re: When to use plugin_end
Reply With Quote #5

Thank you for everyone's explanation.
iceeedr is offline
Send a message via Skype™ to iceeedr
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode