BuildPath Function

Builds a path relative to the SourceMod folder. This should be used instead of directly referencing addons/sourcemod, in case users change the name of their folder layout.

int BuildPath(PathType type, char[] buffer, int maxlength, const char[] fmt, any ...)


PathType type

Type of path to build as the base.

char[] buffer

Buffer to store the path.

int maxlength

Maximum length of buffer.

const char[] fmt

Format string.

any ...

Format arguments.

Return Value

Number of bytes written to buffer (not including null terminator).