08.02.2014, 15:02
Could you post some of the code of the higher jobs? So any job above 7.
It seems that in some way, the first if-statement always returns true in your case, resulting in getting the lowest payment. I can't see anything in this code right now, so maybe there's a typo or something in the other jobs resulting it to set it to one of the lower jobs.
Also try using the 'in-between' notation, using '<=' and '>=', rather than a sum of '||'.
Job 1 to 7 would then become if(mJob[i] >= 1 && <= 7).
It seems that in some way, the first if-statement always returns true in your case, resulting in getting the lowest payment. I can't see anything in this code right now, so maybe there's a typo or something in the other jobs resulting it to set it to one of the lower jobs.
Also try using the 'in-between' notation, using '<=' and '>=', rather than a sum of '||'.
Job 1 to 7 would then become if(mJob[i] >= 1 && <= 7).