Format Function

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

int Format(char[] buffer, int maxlength, const char[] format, any... ...)

Parameters

char[] buffer

Destination string buffer.

int maxlength

Maximum length of output string buffer, including the null terminator.

const char[] format

Formatting rules.

any... ...

Variable number of format parameters.

Return Value

Number of characters written to the buffer, not including the null terminator.