So..I change the code to something like that
int convert[7] = {senB, senBL, senBR, senML, senMR, senL, senR};
for(int i = 0; i <= 6; i++) {
if(convert[i] == 0) {
convert[i] = 100;
}
}
value for senB remains '0'
EDIT:
I tried this code instead :
int convert[7] = {senB, senBL, senBR, senML, senMR, senL, senR};
for(int i = 0; i <= 6; i++) {
convert[i] = 100;
}
Still nothing:(