ArrayList g_hVotes;
public void OnPluginStart()
{
RegAdminCmd("sm_test", Cmd_Test, ADMFLAG_ROOT);
}
public Action Cmd_Test(int client, int args)
{
if(g_hVotes) delete g_hVotes;
int num = GetRandomInt(10, 100), error;
g_hVotes = new ArrayList(_, num);
for(int i; i < num; i++) if(GetArrayCell(g_hVotes, i) != 0) error++;
ReplyToCommand(client, "\n NotZero: %i/%i (%i)\n", error, num, g_hVotes.Length);
for(int i; i < num; i++) SetArrayCell(g_hVotes, i, GetRandomInt(1, 99));
return Plugin_Handled;
}