Merge pull request #289 from alliedmodders/fix/typo-autoexeconfig

Fix typo in AutoExecConfig native
This commit is contained in:
Vincent Herbet 2015-09-05 08:49:04 +02:00
commit 5b3a5a0153
2 changed files with 4 additions and 3 deletions

View File

@ -4506,7 +4506,7 @@ static cell AMX_NATIVE_CALL AutoExecConfig(AMX *amx, cell *params)
}
static char newName[PLATFORM_MAX_PATH];
UTIL_Format(newName, sizeof(newName), "plugin.%s", pluginName);
UTIL_Format(newName, sizeof(newName), "plugin-%s", pluginName);
name = newName;
}

View File

@ -3217,9 +3217,10 @@ forward OnAutoConfigsBuffered();
/**
* Specifies that the given config file should be executed after plugin load.
*
* @note OnConfigsExecuted() will not be called until the config file has executed,
*
* @note OnConfigsExecuted() will not be called until the config file has executed,
* but it will be called if the execution fails.
* @note The name parameter should not contain dots, otherwise file will not be executed.
*
* @param autoCreate If true, and the config file does not exist, such a config
* file will be automatically created and populated with