View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-28-2018 , 03:12   Re: SetNTVOptional() isn't being called automatically?
Reply With Quote #3

Quote:
Originally Posted by Fyren View Post
It won't be called if you named it incorrectly.
My naming seems correct though.

Plugin file name is shavit-core.

.inc
Code:
public SharedPlugin __pl_shavit =
{
	name = "shavit",
	file = "shavit-core.smx",
#if defined REQUIRE_PLUGIN
	required = 1
#else
	required = 0
#endif
};

#if !defined REQUIRE_PLUGIN
public void __pl_shavit_SetNTVOptional()
{
	MarkNativeAsOptional("Shavit_Rankings_DeleteMap");
}
.sp
Code:
#undef REQUIRE_PLUGIN
#include <shavit>
__________________
retired
shavit is offline