I know there should be a simple fix for this, but im braindead at the moment.
I have some count variables set up:
int gate1count, gate2count, gate3count;
gate = 1;
gate1count ++;
But in some places, I have:
gate = someint;
How can I increment the appropriate counter depending on what “someint” is?
EDIT:
Ok, the user can select a gate from a drop down menu. This is what “someint” represents.
So if they select a gate from the dropdown, I need to increment that gate counter.
You can use an array instead of 3 different gates.