Format

Last Updated2022-02-14
Created At2016-10-03

Formats a string according to the SourceMod format rules (see documentation). All format specifiers are escaped (see SQL_EscapeString) unless the '!' flag is used.

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.
const char[] format
Formatting rules.
any... ...
Variable number of format parameters.

Return Value

int Number of cells written.