VFormat

Last Updated2023-11-06
Created At2007-01-29

Formats a string according to the SourceMod format rules (see documentation).

Notes

This is the same as Format(), except it grabs parameters from a parent parameter stack, rather than a local. This is useful for implementing your own variable argument functions.

native int VFormat(char[] buffer, int maxlength, const char[] format, int varpos)

Parameters

char[] buffer
Destination string buffer.
int maxlength
Maximum length of output string buffer, including the null terminator.
const char[] format
Formatting rules.
int varpos
Argument number which contains the '...' symbol. Note: Arguments start at 1.

Return Value

int Number of bytes written.

Error

Invalid argument index.