I have a questions for you....
In my script I have the following line to have it withdraw:
-----------------------------
if balance>=target then ching()
withdraw(withdrawAmount,withdrawAddress)
resetSettings()
end
-----------------------------
The problem I experience is that it starts to withdraw at the set limit I have and takes the amount I have chosen to withdraw... but for some reason it the repeats it over and over until the money was gone....
Which in my case was a really shitty move
![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
I will attach a bit of the log:
Betting 0.000000107 at 0.99% chance to win, high
Withdrawing 0.001 to 1HSPqbFBRQDT1pKyGk1mp2UZKQNzUdt43x
---bet lost---
==================================================
Betting 0.000000114 at 0.99% chance to win, low
Withdrawing 0.001 to 1HSPqbFBRQDT1pKyGk1mp2UZKQNzUdt43x
---bet lost---
==================================================
Betting 0.000000121 at 0.99% chance to win, high
Withdrawing 0.001 to 1HSPqbFBRQDT1pKyGk1mp2UZKQNzUdt43x
---bet lost---
==================================================
Betting 0.000000128 at 0.99% chance to win, low
Withdrawing 0.001 to 1HSPqbFBRQDT1pKyGk1mp2UZKQNzUdt43x
---bet lost---
Can someone please guide me how to over come this.... I don't understand why he repeated since target is:
target=0.0085
and withdraw:
withdrawAmount=0.001 -- amount to withdraw
To me he should recheck the balance and see that it was now 0.001 less and thus not withdrawing anymore
![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
If that would be the case can I in some way initiate a pause directly after the first withdrawal to give the site time to update?
/T