native

vdformat

Syntax

native vdformat(buffer[], len, fmt_arg, vararg, ...);

Description

Formats a string according to the AMX Mod X format rules (see documentation).

Parameters

buffer Destination string buffer.
len Maximum length of output string buffer.
fmt_arg Argument number which contains the format.
vararg Argument number which contains the '...' symbol.
Note: Arguments start at 1.

Note

Same as vformat(), except works in normal style dynamic natives.
Instead of passing the format arg string, you can only pass the
actual format argument number itself.
If you pass 0, it will read the format string from an optional
fifth parameter.

Return

Number of bytes written.