Format

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

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

native 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

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