added an easier format string Function
changed normal log names to be more consistent added logging natives --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40352
This commit is contained in:
@@ -69,6 +69,22 @@ namespace SourceMod
|
||||
* @param ... Message format parameters.
|
||||
*/
|
||||
virtual void LogError(IExtension *pExt, const char *format, ...) =0;
|
||||
|
||||
/**
|
||||
* @brief Formats a string from a native.
|
||||
*
|
||||
* @param buffer Buffer to store message.
|
||||
* @param maxlength Maximum length of buffer (inculding null terminator).
|
||||
* @param pContext Pointer to the plugin's context.
|
||||
* @param params Parameter array that was passed to the native.
|
||||
* @param param Parameter index where format string and variable arguments begin.
|
||||
* @return Number of bytes written, not including the null terminator.
|
||||
*/
|
||||
virtual size_t FormatString(char *buffer,
|
||||
size_t maxlength,
|
||||
IPluginContext *pContext,
|
||||
const cell_t *params,
|
||||
unsigned int param) =0;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user