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_configsdir( g_ConfigsDir, charsmax(g_ConfigsDir) )
format( g_ConfigsDir, charsmax(g_ConfigsDir), "%s/_LPC/lpc_gunmenu.ini", g_ConfigsDir )
g_FilePointer = fopen( g_ConfigsDir, "r" )
if ( !g_FilePointer )
abort( AMX_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