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

Unload module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
puga4off
Junior Member
Join Date: Nov 2013
Old 10-25-2014 , 02:13   Unload module
Reply With Quote #1

Hi everyone. How to unload amxmodx module? In sourcemod extension there are
PHP Code:
bool SDK_OnLoad(char *errorsize_t err_maxbool late
and if something like curl_global_init return bad code in SDK_OnLoad, i can return false and extension will not be loaded. How to do that in amxmodx? I just looked and noticed that modules.cpp call C_DLLEXPORT int AMXX_Attach(PFN_REQ_FNPTR reqFnptrFunc) and this function call OnAmxxAttach and i cannot affect on it. What to do?

Last edited by puga4off; 10-25-2014 at 02:16.
puga4off is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-25-2014 , 11:34   Re: Unload module
Reply With Quote #2

If you don't want AMX Mod X running, simply remove it.
__________________
fysiks is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-25-2014 , 12:07   Re: Unload module
Reply With Quote #3

I think he mean how to unload an amxmodx module, not the amxmodx itself.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-25-2014 , 12:19   Re: Unload module
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
I think he mean how to unload an amxmodx module, not the amxmodx itself.
oh lol, that would make more sense. My bad.
__________________

Last edited by fysiks; 10-25-2014 at 12:19.
fysiks is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 10-25-2014 , 15:29   Re: Unload module
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
I think he mean how to unload an amxmodx module, not the amxmodx itself.
To expand on that, he wants it to unload on any error(like a missing library or an internal error)
__________________
WildCard65 is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-25-2014 , 18:32   Re: Unload module
Reply With Quote #6

Quote:
Originally Posted by WildCard65 View Post
To expand on that, he wants it to unload on any error(like a missing library or an internal error)
OK, you might do a GitHub request for that.
While AMX Mod X doesn't support that, use a variable (true/ false) and disable the functionality while the variable is set as false.
__________________

Last edited by claudiuhks; 10-25-2014 at 18:32.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
puga4off
Junior Member
Join Date: Nov 2013
Old 10-25-2014 , 20:29   Re: Unload module
Reply With Quote #7

Quote:
Originally Posted by claudiuhks View Post
OK, you might do a GitHub request for that.
While AMX Mod X doesn't support that, use a variable (true/ false) and disable the functionality while the variable is set as false.
this is not good, because module will be in memory i know that i can't change sdk, but if C_DLLEXPORT int AMXX_Attach(PFN_REQ_FNPTR reqFnptrFunc) called int callback and returned it's value it will be nice
puga4off is offline
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 03:39.


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