Raised This Month: $ Target: $400
 0% 

if module doesn't exists don't use it


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 03-29-2009 , 10:05   if module doesn't exists don't use it
Reply With Quote #1

I wanna make in my plugin if csdm module doesn't exists so don't use it:
PHP Code:
public plugin_natives()
{        
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}

public 
module_filter(const module[])
{
    if(
module_exists("csdm"))        
        
g_Csdm true
        
    
if (!g_Csdm && equali(module"csdm"))
        return 
PLUGIN_HANDLED

    
return PLUGIN_CONTINUE
}

public 
native_filter(const name[], indextrap)
{
    if (!
trap) return PLUGIN_HANDLED

    
return PLUGIN_CONTINUE

but module_exists("csdm") function always return false. Why? And maybe there is other way to do the same


Sorry for Bad English

Last edited by Empowers; 03-29-2009 at 10:07.
Empowers is offline
Send a message via ICQ to Empowers
 



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 09:03.


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