i have a plugin like this;
PHP Code:
#include <sourcemod>
ConVar kredi;
ConVar tagi;
public Plugin myinfo =
{
name = "Test",
author = "",
version = "1.0",
url = ""
}
public void OnPluginStart(){
kredi = CreateConVar("test", "150", "");
tagi = CreateConVar("test2", "", "");
AutoExecConfig(true, "configfile");
}
it creates a file, but when i change that file and reload map, it doesn't be like in the file, it always has default value, unless i reload plugin.
i think about adding AutoExecConfig to OnMapStart but i am not sure that solve the problem.
i also have a lot of plugins that create config files, some of them run without problem, and some have this problem.