Signature
native formatex(output[], len, const format[], any:...);
Description
Formats a string according to the AMX Mod X format rules (see documentation).
Notes
-
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.
Parameters
- output — Destination string buffer.
- len — Maximum length of output string buffer.
- format — Formatting rules.
- ... — Variable number of format parameters.
Returns
Number of cells written.