Another Update.
Thanks to Peace-Maker, the include is now a little bit easier to use, especially for bigger plugins.
Instead of using
PHP Code:
AutoExecConfig(true, "plugin.myplugin");
You now can simply use this
PHP Code:
AutoExecConfig_ExecuteFile();
This makes an internal call to AutoExecConfig with the data you set by AutoExecConfig_SetFile.
The include is now able to create the configfile by itself if it doesn't exists, by default this is disabled and can be enabled like this
PHP Code:
AutoExecConfig_SetCreateFile(true);
To those who haven't noticed, thanks to TnTSCS you can now use newline characters in your convar description like so
PHP Code:
AutoExecConfig_CreateConVar("newlinetest", "SomeCvar", "This\nIs\nA\nNewline\nTest", FCVAR_PLUGIN);
The result will look something like this
PHP Code:
// This
// Is
// A
// Newlie
// Test
// Default: "SomeCvar"
newlinetest "SomeCvar"
Yours sincerely
Impact
__________________