Raised This Month: $ Target: $400
 0% 

[Help] VIP/Gunmenu Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LegacyCode
Member
Join Date: Apr 2017
Old 05-23-2017 , 19:05   Re: [Help] VIP/Gunmenu Plugin
Reply With Quote #7

Hello,

I use ArrayCreate in plugin_init() -> populate_menus(), where I also read the .ini file to populate the gunmenu with data.

Is that the wrong place to read the ini file? Also in the error log you can see it says something about "abort", which I used in this version I uploaded. Why is that wrong?
Is this maybe the cause why ArrayCreate is never called? ArrayCreate comes after this:

PHP Code:
    get_configsdirg_ConfigsDircharsmax(g_ConfigsDir) )
    
formatg_ConfigsDircharsmax(g_ConfigsDir), "%s/_LPC/lpc_gunmenu.ini"g_ConfigsDir )

    
g_FilePointer fopeng_ConfigsDir"r" )

    if ( !
g_FilePointer )
        
abortAMX_ERR_NATIVE"[LPC] Configuration File (%s) not found"g_ConfigsDir 
I took the abort() function from admincmd.sma but it seems I'm using it wrong... I want the plugin not to run at all without the ini file.

- LegacyCode

Last edited by LegacyCode; 05-23-2017 at 19:08.
LegacyCode is offline
 



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 20:41.


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