You'll need to use dynamic arrays for that.
PHP Code:
new Array:g_iArray[33];
public plugin_cfg()
{
for (new i = 1, maxPlayers = get_maxplayers(), cvarValue = get_pcvar_num(g_pCvar); i <= maxPlayers; i++)
g_iArray[i] = ArrayCreate(cvarValue);
}
However it all depends on what you're actually doing. It may be better to just hardcode the array size in certain scenarios.
__________________