GetExtensionFileStatus Function

Returns the status of an extension, by filename.

int GetExtensionFileStatus(const char[] name, char[] error, int maxlength)

Parameters

const char[] name

Extension name (like "sdktools.ext").

char[] error

Optional error message buffer.

int maxlength

Length of optional error message buffer.

Return Value

-2 if the extension was not found. -1 if the extension was found but failed to load. 0 if the extension loaded but reported an error. 1 if the extension is running without error.