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

Solved Native filter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-26-2020 , 07:40   Native filter
Reply With Quote #1

How to use native filter any tut?
__________________

Last edited by Sanjay Singh; 01-26-2020 at 14:33.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-26-2020 , 08:01   Re: Native filter
Reply With Quote #2

Code:
native name_of_native_function(param1, param2, param3) new bool:g_bIsNativeAvailable public plugin_init() {     if(LibraryExists("name_of_library", LibType_Library))     {         g_bIsNativeAvailable = true     } } public plugin_natives() {     set_native_filter("native_filter") } public native_filter(const szNative[], id, iTrap) {     if(equal(szNative, "name_of_native_function"))     {         return PLUGIN_HANDLED     }         return PLUGIN_CONTINUE } public some_function() {     if(g_bIsNativeAvailable)     {         name_of_native_function(id, 250, bla bla)     } }

Full example here.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 01:17.


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