No, I just consistently overlooked the key parameter.
I'm just adding a min and max float value to a small array that will fall under a key that I can then search for later.
Seeing that I need to loop it, it looks like I'll have to use a dynamic array.
It's telling me on PushArrayArray() that the arrays don't match... error 048. I've added [] and [0] to the end and tried a few different things, but can't figure out why. :\
Using a non-multidimensional array, it tells me that the storage types differ and that it can't coerce char[] to any[].
PHP Code:
Handle h_RestrictedConvars;
public void OnPluginStart()
{
RegServerCmd("sm_test", Command_RestrictConvar);
h_RestrictedConvars = CreateArray(3);
}
public Action Command_RestrictConvar(int i_Arguments)
{
if (i_Arguments != 3) {
return Plugin_Handled;
}
char c_RestrictedConvar[4][64];
// add the convar parameters to an array
GetCmdArg(1, c_RestrictedConvar[0], sizeof(c_RestrictedConvar[]));
GetCmdArg(2, c_RestrictedConvar[1], sizeof(c_RestrictedConvar[]));
GetCmdArg(3, c_RestrictedConvar[2], sizeof(c_RestrictedConvar[]));
PushArrayArray(h_RestrictedConvars, c_RestrictedConvar);
return Plugin_Handled;
}