AutoExecConfig does not run
the problem is that it does not create the configuration folder and does not execute the cvars in OnConfigsExecuted, is there any way to run there?
example PHP Code:
|
Re: AutoExecConfig does not run
I think you're configuring it to automatically execute configs after the configs have already executed. Therefore, it won't ever execute the configs. You need to call AutoExecConfig() in plugin_init(). Then, you can read the settings that were executed in or after OnConfigsExecuted().
|
Re: AutoExecConfig does not run
Quote:
|
Re: AutoExecConfig does not run
AutoExecConfig() has no purpose after OnConfigsExecuted() is called including in the function itself. It doesn't do any reading or executing of files, it only configures AMX Mod X to automatically execute plugin-specific configuration files after all other configs are executed.
If you need to execute a config file again at a later time, you would execute it with server_cmd("path/to/file/myConfig.cfg") |
Re: AutoExecConfig does not run
Quote:
|
| All times are GMT -4. The time now is 19:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.