Hide VFormat() for SourcePawn 2 plugins.
VFormat() does not work in the v2 VM. Instead, there is a new "spread" operator, so regular Format or FormatEx will work instead.
This commit is contained in:
@@ -230,6 +230,9 @@ static cell_t sm_format(IPluginContext *pCtx, const cell_t *params)
|
||||
static char g_vformatbuf[2048];
|
||||
static cell_t sm_vformat(IPluginContext *pContext, const cell_t *params)
|
||||
{
|
||||
if (pContext->GetBaseRuntime()->AsV2() != nullptr)
|
||||
return pContext->ThrowNativeError("VFormat is not supported in SourcePawn 2 plugins");
|
||||
|
||||
int vargPos = static_cast<int>(params[4]);
|
||||
|
||||
/* Get the parent parameter array */
|
||||
|
||||
Reference in New Issue
Block a user