Database.Format Method

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

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

Number of cells written.