//In your enum:#define MAX_SPIKES 50enum spikes{ // your variables}new SpikeInfo[MAX_SPIKES][spikes];// then you can use it like:for(new i = 0; i < MAX_SPIKES; i++)