Add a cvar in Back Weapons plugin

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Add a cvar in Back Weapons plugin

Мнение от OciXCrom » 20 Юли 2020, 00:37

Changing cvars in the .sma file has no effect. They're stored internally in your server after you first load up the plugin and the value from the .sma file is not read again. The proper way to change them is via a .cfg file. Why did you request a cvar if you want to change it via the .sma? And why would you want to do that and recompile it instead of editing a .cfg file or using the amx_cvar command? What you're saying makes no sense.

Аватар
USA_CA
Извън линия
Foreigner
Foreigner
Мнения: 106
Регистриран на: 19 Юли 2020, 18:02

Add a cvar in Back Weapons plugin

Мнение от USA_CA » 20 Юли 2020, 18:33

OciXCrom написа: 20 Юли 2020, 00:37 Changing cvars in the .sma file has no effect. They're stored internally in your server after you first load up the plugin and the value from the .sma file is not read again. The proper way to change them is via a .cfg file. Why did you request a cvar if you want to change it via the .sma? And why would you want to do that and recompile it instead of editing a .cfg file or using the amx_cvar command? What you're saying makes no sense.
I do not like to just write anything in amxx. cfg
thank you again for the plugin :o

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Add a cvar in Back Weapons plugin

Мнение от OciXCrom » 20 Юли 2020, 20:50

Writing in amxx.cfg is 10x times faster than writing the same thing in the .sma, recompiling the plugin and replacing the .amxx file. This is how all plugins work.

Аватар
USA_CA
Извън линия
Foreigner
Foreigner
Мнения: 106
Регистриран на: 19 Юли 2020, 18:02

Add a cvar in Back Weapons plugin

Мнение от USA_CA » 20 Юли 2020, 21:00

OciXCrom написа: 20 Юли 2020, 20:50 Writing in amxx.cfg is 10x times faster than writing the same thing in the .sma, recompiling the plugin and replacing the .amxx file. This is how all plugins work.
well, thank You)

Заключено
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: Bing [Bot], Google [Bot] и 18 госта