Hi,
I do like to use sm engine to update convar values in cfg file.
Unfortunately:
Code:
char g_sConfigFile[30] = "l4d_test_plugin";
public void OnPluginStart()
{
AutoExecConfig(true, g_sConfigFile);
}
is work, but calling:
Code:
void UpdateCfg()
{
char sPath[PLATFORM_MAX_PATH];
Format(sPath, sizeof(sPath), "cfg/sourcemod/%s.cfg", g_sConfigFile);
DeleteFile(sPath);
AutoExecConfig(true, g_sConfigFile);
}
in late game is not work: file deleted but not created.
Is it possible to force it to work rather than writing code
like this or creating own config file, like KeyValues format? (I don't want to produce extra cfg files or extra code.)
__________________