MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / sm_CallPushArray

Function sm_CallPushArray

core/logic/smn_functions.cpp:455–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455static cell_t sm_CallPushArray(IPluginContext *pContext, const cell_t *params)
456{
457 cell_t *addr;
458
459 if (!s_CallStarted)
460 {
461 return pContext->ThrowNativeError("Cannot push parameters when there is no call in progress");
462 }
463
464 if (int err = pContext->LocalToPhysAddr(params[1], &addr); err != SP_ERROR_NONE)
465 return pContext->ThrowNativeErrorEx(err, nullptr);
466
467 sArgs.PushArray(addr, params[2]);
468
469 if (sArgs.error)
470 return pContext->ThrowNativeErrorEx(SP_ERROR_PARAMS_MAX, nullptr);
471
472 return 1;
473}
474
475static cell_t sm_CallPushArrayEx(IPluginContext *pContext, const cell_t *params)
476{

Callers

nothing calls this directly

Calls 1

PushArrayMethod · 0.80

Tested by

no test coverage detected