1.1 --- a/core/sourcemod.cpp Thu Jan 25 06:18:22 2007 +0000
1.2 +++ b/core/sourcemod.cpp Thu Jan 25 06:19:17 2007 +0000
1.3 @@ -9,6 +9,7 @@
1.4 #include "CLogger.h"
1.5 #include "ExtensionSys.h"
1.6 #include "AdminCache.h"
1.7 +#include "sm_stringutil.h"
1.8
1.9 SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool);
1.10 SH_DECL_HOOK0_void(IServerGameDLL, LevelShutdown, SH_NOATTRIB, false);
1.11 @@ -305,6 +306,17 @@
1.12 }
1.13 }
1.14
1.15 +size_t SourceModBase::FormatString(char *buffer, size_t maxlength, IPluginContext *pContext, const cell_t *params, unsigned int param)
1.16 +{
1.17 + char *fmt;
1.18 +
1.19 + pContext->LocalToString(params[param], &fmt);
1.20 +
1.21 + int lparam = ++param;
1.22 +
1.23 + return atcprintf(buffer, maxlength, fmt, pContext, params, &lparam);
1.24 +}
1.25 +
1.26 const char *SourceModBase::GetSourceModPath()
1.27 {
1.28 return m_SMBaseDir;