Constants in string.inc

List of constants

@global Unless otherwise noted, all string functions which take in a writable buffer and maximum length should NOT have the null terminator INCLUDED in the length. This means that this is valid: copy(string, charsmax(string), ...)
Formats and returns a string according to the AMX Mod X format rules (see documentation).

Note

  • Example: menu_additem(menu, fmt("My first %s", "item")).
  • This should only be used for simple inline formatting like in the above example.
    Avoid using this function to store strings into variables as an additional
    copying step is required.
  • The buffer size is defined by MAX_FMT_LENGTH.

Param

  • Formatting rules.
  • Variable number of format parameters.

Return

Formatted string