View Single Post
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-05-2013 , 13:10   Re: [INCLUDE] Autoexecconfig read and append beta
Reply With Quote #23

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
__________________
Impact123 is offline