some BoolOption that can happen to me
bools can be done in different ways
you've got the simple
or you can use the little advanced way and use them in arrays like i do
you've got the simple
Code:
case 1: bool = !bool; break;
or you can use the little advanced way and use them in arrays like i do
Code:
bool testBool[50];
no need for a case as you can just use it like
addBoolOption("test bool". testBool[1]);
or better yet, re do you bool option so it works like this
addBoolOption("test bool", &testBool[1]);
and then you would do this in your other loop
if(testBool[1]){
turn your function on
}
else {
turn your functionoff
}
Users browsing: 1 Guest(s)