Good afternoon, I'm new here and I'm using Mozilla Firefox JavaScript Scratchpad to run Javascript tags. It will really suit my needs, however the while loop condition of the while loop is not working (for also did not work). Also, the variable i
is not having its value incrementing, preventing any value beyond the first of array
from being used. Thanks for any response, thank you.
Follow the code:
window.setInterval(function () {
var inputs = [ 10595, 10243, 11514, 11053, 10449, 10208, 11160, 10970, 10706, 11075, 10400, 10112, 10086, 10503, 11910, 12110, 11537, 9694, 12112, 10793, 11728, 9532, 10389, 12983, 9533, 12424, 10697, 11997, 12121, 11606, 10526, 9729, 10143, 11737, 10025, 10700, 11564, 12623, 9324, 11761, 10008, 11780, 10105, 12230, 12489, 12649, 9083, 11192, 10010, 10984, 12075, 12075, 11026, 12194, 12335, 10035];
var i = 0;
do {
Accountmanager.farm.sendUnits(this, inputs[i], 4202);
i++;
}
while (i < 5)
}, 250);