register_dictionary

Синтаксис

native register_dictionary(const filename[]);

Употреба

filename
Dictionary file name

Описание

Registers a dictionary file, making sure the words are in the dictionary.

Забележка

The file should be in "addons/amxmodx/data/lang", but only the name
needs to be given. For example, register_dictionary("file.txt") will
be "addons/amxmodx/data/lang/file.txt".

Връщаща стойност

On success, the function will return 1, otherwise it will
return 0 if the file couldn't be found or opened, and -1 if
the dictionary was already registered by a plugin