View Single Post
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-13-2018 , 06:48   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #54

Here's an example which would create 2 config files
PHP Code:
AutoExecConfig_SetCreateFile(true);

AutoExecConfig_SetFile("test1");
AutoExecConfig_CreateConVar("test1""1""Test1");
AutoExecConfig_ExecuteFile();

AutoExecConfig_SetFile("test2");
AutoExecConfig_CreateConVar("test2""1""Test2");
AutoExecConfig_ExecuteFile(); 
The important part which i forgot to mention is using

PHP Code:
AutoExecConfig_SetCreateFile(true); 
__________________
Impact123 is offline