Raised This Month: $ Target: $400
 0% 

Making "cstrike" module optional


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 08-09-2008 , 14:12   Making "cstrike" module optional
Reply With Quote #1

When I include "cstrike.inc" like this:
PHP Code:
#define AMXMODX_NOAUTOLOAD
#include <cstrike> 
I get this error:
Code:
Module/Library "cstrike" required for plugin.  Check modules.ini.
When I add this:
PHP Code:
public plugin_natives()
    {
    
register_library("cstrike")
    } 
then I get this error:
Code:
Plugin uses an unknown function (name "cs_set_user_money") - check your modules.ini.
I only use "cs_get_user_money" and "cs_set_user_money" when the mod is Counter-Strike so I don't want it to load "cstrike" module in other mods. How can I do that without editing "cstrike.inc"?
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
 



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 05:34.


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