BuildPath

Last Updated2007-11-27
Created At2007-01-25

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.

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

Parameters

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

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