AMX Mod X API Documentation

Signature
native register_dictionary(const filename[]);
Description

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

Notes
  • 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".

Parameters
  • filename Dictionary file name
Returns

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

Назад
Верх