You were right, really is not that complicated and works good for my purpose.
Still have two questions though:
1. The sourcemod doc says:
How much slower is it, compared to a normal private array?
And is this "slower" referring only to more complicated operations like iterating through, copying, moving and such, or also to something simple like getting a string out of it?
2. I am getting a compile error when doing this:
Code:
new String:gString[MyConstant];
GetArrayString(MyArrayHandle, 5, gString, sizeof(gString));
Here, "MyConstant" is defined in the plugin header outside of any function:
Code:
static const MyConstant = 96;
It throws me this error:
warning 224: indeterminate array size in "sizeof" expression (symbol "")
It only works when I replace MyConstant with a direct expression like 96 in the line, creating the gString. Why would sizeof(gString) be indeterminate, when MyConstant is .. well.. a CONSTANT?