Инфо из lang.inc:
//registers a dictionary file, making sure the words are in the dictionary
// the file should be in "addons/amxx/data/lang/", but only the name needs to be
// given. (e.g. register_dictionary("file.txt") will be addons/amxx/data/file.txt).
native register_dictionary(const filename[]);
Синтаксис:
register_dictionary ( const file[] )
- const file[] - Файл словаря ( с расширением )
Пример:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Register dictionary"
#define VERSION "1.0"
#define AUTHOR "Admin"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_dictionary("my_plugin.txt")
}
Описание:
Данный пример ни чего визуального для нас не сделает, он только регистрирует наш словарь для плагна.
Если вы не создав файл запустите сервер, то увидите вот такое сообщение в консоли:
[AMXX] Failed to open dictionary file: cstrike\addons\amxmodx\data\lang\my_plugin.txt
Это сервер сообщает вам, что файла нет, если вы его создадите - то надпись исчезнет.