formatex
- Синтаксис
-
native formatex(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).
- Пометка
-
Same as format(), except does not perform a "copy back" check. This means formatex() is faster, but DOES NOT ALLOW this type of call: formatex(buffer, len, "%s", buffer) formatex(buffer, len, buffer, buffer) formatex(buffer, len, "%s", buffer[5]) This is because the output is directly stored into "buffer", rather than copied back at the end.
- Возвращает
- Number of cells written.