AutoExecConfig is not creating the config file all of a sudden.
It worked fine one day ago, then recently I wanted to reset it so I deleted the .cfg file. Now it won't recreate one when I restart the server.
My code:
Code:
public void OnPluginStart() {
// CVars
AutoExecConfig_SetFile("warden", "BetterWarden"); // What's the configs name and location?
AutoExecConfig_SetCreateFile(true); // Create config if it does not exist
...
AutoExecConfig_CreateConVar(...);
...
AutoExecConfig_ExecuteFile(); // Execute the config
AutoExecConfig_CleanFile(); // Clean the .cfg from spaces etc.
}
Anyone know why this is happening? I can't seem to find any errors in the logs either.
Another issue is that the connection to a database is not working. So it would seem that the plugin is not initiating properly. Which is really weird..
EDIT
When in-game and doing
sm_cvar my_cvar it finds the cvar and its value. So the CVars are being created, but not the actual config file somehow...
__________________