Hm, I'm starting to wonder if I'm being ingored on purpose.
And FYI - Your license hash thingy on GeekyDesigns isn't working. I verified myself last night, then checked this morning, still don't have access. O_o
HoC
You are not being ignored on purpose. And I checked in the admincp and you are marked as Licensed.
Quote:
Originally Posted by House_of_Crazed
Couple questions
1. I see in ushop.php the $points variable, however, it only takes in account for the money the users has out from the bank. What I want to do is to change it to take in account for the money that users also has in the bank. What should I change it to?
2. What is the variable that you are using for how much money the user has in the bank? I looked in the database and saw all those weird numbers in the bankdata row in the user table. I am assuming you are also using $bankdata as the variable for how much money is in the bank for the user.
3. You are aware that the database is showing more than 2 numbers after the decimal in the bank / money on hand.
4. For this, I will use A & B's. Assume those 2 are 2 different people. A has $50 on hand. If A tries to steal $100 from B, and FAILS. He will lose that amount of money, and his money on hand becomes a negative number and A will be denied access to the bank. However, A does have money in the bank, he should be able to go into the bank anyway.
HoC
1. It'd be a simple change to everywhere $points is defined, but the code below just makes a new variable - $bankmoney. $points shouldn't include what is in the bank, otherwise it'll cause weirdness all over the store. Feel free to store $points + $bankmoney in a new variable though.
2. The above code should answer your question. uttstore_bankdata is a serialized array.
3. Yes, I am away of that. Not a bug in itself, but it can cause some. I'll probably round it off in future releases.
4. That shouldn't happen, as it should prevent users to steal more money then they have. But I am making 0 just mean to not check to see if they have enough money at all in the next release anyways, just incase someone does go into negatives (although they shouldn't, I've seen it happen).
You are not being ignored on purpose. And I checked in the admincp and you are marked as Licensed.
Oh, that's odd. Well, when I verified myself, I gave myself like 2 or 3 hours to give you guys time for whatever verification system you used, lol, to verify me. And I still could not post a thread or reply. *shrugs*
And reason why I said being ignored on purpose is because I posted this like a few days ago and I've seen you guys reply to other posts. *shrugs* I just don't like being ignored Don't take offense
Quote:
1. It'd be a simple change to everywhere $points is defined, but the code below just makes a new variable - $bankmoney. $points shouldn't include what is in the bank, otherwise it'll cause weirdness all over the store. Feel free to store $points + $bankmoney in a new variable though.
2. The above code should answer your question. uttstore_bankdata is a serialized array.
Yea, it does, I'll give this a try.
Quote:
3. Yes, I am away of that. Not a bug in itself, but it can cause some. I'll probably round it off in future releases.
Excellent I'm asking because my users came to me complaining that they cannot deposit all their money (i.e., 140.30), it would tell them that they do not have enough money.
Quote:
4. That shouldn't happen, as it should prevent users to steal more money then they have. But I am making 0 just mean to not check to see if they have enough money at all in the next release anyways, just incase someone does go into negatives (although they shouldn't, I've seen it happen).
Yea, I've been sitting here trying to figure out the code, but I'll let you do it, LOL since you are more inimiate with the shop code, not I.
Oh, that's odd. Well, when I verified myself, I gave myself like 2 or 3 hours to give you guys time for whatever verification system you used, lol, to verify me. And I still could not post a thread or reply. *shrugs*
And reason why I said being ignored on purpose is because I posted this like a few days ago and I've seen you guys reply to other posts. *shrugs* I just don't like being ignored Don't take offense
Yea, it does, I'll give this a try.
Excellent I'm asking because my users came to me complaining that they cannot deposit all their money (i.e., 140.30), it would tell them that they do not have enough money.
Yea, I've been sitting here trying to figure out the code, but I'll let you do it, LOL since you are more inimiate with the shop code, not I.
Thanks!
HoC
Are you still having the problems? we both checked and my test licensed user is not having any problems.
If you have the time could you drop me a pm if your still having troubles