iCo6 - bankWithdraw and bankDeposit issues?
Mitsugaru opened this issue ยท 3 comments
Here's my problem:
When I use bankWithdraw or bankDeposit, Vault gives me the 'success' type. However, when inspecting the EconomyResponse, the actual balance hasn't changed prior to using one of the methods. What's weird is that it only does this for some accounts, whereas it works fine for other accounts. At least its been consistent in working if the player is at least online or recently online or something...
I'm just wondering if you knew how this could happen, telling iConomy 6 to withdraw/deposit and it doesn't change their balance?
I know for a fact that the account is in the database, with a given name. I know that Vault sees the account since it can grab the balance appropriately. It just doesn't seem to want to edit it in some seemingly random cases.
For instance, I'm iterating through the database of say 500 different iConomy accounts. About 80-ish actually get modified and the rest don't.
This is probably just an iConomy 6 issue... IDK...
Any help is appreciated.
hmmm, yah this may be an issue with iCo but I'll doublecheck to see if I'm not handling a null return or a failure somewhere.
Are you using SQL to test this? - seems like it might be a delay issue with the DB not pushing the changed amount before re-checking it.