format
- Синтаксис
-
native format(output[], len, const format[], any:...);
Переменная | Описание |
---|---|
output |
Destination string buffer. |
len |
Maximum length of output string buffer. |
format |
Formatting rules. |
... |
Variable number of format parameters. |
- Описание
- Formats a string according to the AMX Mod X format rules (see documentation).
- Пометка
-
Example: format(dest, "Hello %s. You are %d years old", "Tom", 17). If any of your input buffers overlap with the destination buffer, format() falls back to a "copy-back" version as of 1.65. This is slower, so you should using a source string that is the same as the destination.
- Возвращает
- Number of cells written.