SQL_FormatQuery Function

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 SQL_FormatQuery(Handle database, char[] buffer, int maxlength, const char[] format, any... ...)

Parameters

Handle database

A database Handle.

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.