Thread: Config Load
View Single Post
Author Message
dangerlord63
Senior Member
Join Date: Aug 2011
Old 04-28-2018 , 04:36   Config Load
Reply With Quote #1

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.
dangerlord63 is offline