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

Function SetVariantString

extensions/sdktools/variant-t.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static cell_t SetVariantString(IPluginContext *pContext, const cell_t *params)
60{
61 char *str;
62 pContext->LocalToString(params[1], &str);
63 strncpy(g_Variant_str_Value, str, sizeof(g_Variant_str_Value));
64 g_Variant_str_Value[sizeof(g_Variant_str_Value) - 1] = '\0';
65 g_Variant_t.SetString(MAKE_STRING(g_Variant_str_Value));
66 return 1;
67}
68
69static cell_t SetVariantInt(IPluginContext *pContext, const cell_t *params)
70{

Callers

nothing calls this directly

Calls 1

SetStringMethod · 0.45

Tested by

no test coverage detected