Raised This Month: $32 Target: $400
 8% 

Solved Plugin Required even with #undef REQUIRE_PLUGIN


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 12-19-2017 , 16:39   Plugin Required even with #undef REQUIRE_PLUGIN
Reply With Quote #1

Hi there,
I like coding with thousands of Includes, but when a Include has this inside:
Code:
public SharedPlugin:__pl_plugin =
{
	name = "Plugin",
	file = "Plugin.smx",
	required = 1
};
The plugin cannot run cause there is different Plugin required.

In the Wiki it says the Code should be like this:
Code:
public SharedPlugin __pl_myfile = 
{
	name = "myfile",
	file = "myfile.smx",
#if defined REQUIRE_PLUGIN
	required = 1,
#else
	required = 0,
#endif
};
In this Case #undef REQUIRE_PLUGIN would work, but when Includes dosent contain this if Switch, the Problem persists.

So basicly, how can i unrequire these Plugins without changing the Code of the Includes?
Of course i could also just copy the Function, but this isent the best Solution for me
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 12-21-2017 at 17:26.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-19-2017 , 20:28   Re: Plugin Required even with #undef REQUIRE_PLUGIN
Reply With Quote #2

You can't.
__________________
asherkin is offline
DJPlaya
Senior Member
Join Date: Nov 2014
Location: Germany
Old 12-21-2017 , 17:26   Re: Plugin Required even with #undef REQUIRE_PLUGIN
Reply With Quote #3

Hmm, adding this into my Code seems to overwrite the Includes dependency on the Plugin - nice
Code:
public SharedPlugin:__pl_includeplugin =
{
	name = "IncludePlugin",
	file = "IncludePlugin.smx",
	required = 0
};
__________________
My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

Last edited by DJPlaya; 12-21-2017 at 17:27.
DJPlaya is offline
Send a message via Skype™ to DJPlaya
Reply


Thread Tools
Display Modes

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 18:43.


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