![]() |
Trade/Money Glitch
When my users trade pets and don't put a pet to trade in, it takes all their money after the trade is completed. Was this fixed in the newest release?
|
This is a really huge problem... Anyone have a quick fix? I've been staring at it for a few hours but really have no clue what I'm looking for.
|
Could it be this part?
PHP Code:
|
umm I will look into this code tomorrow, it looks like a weird issue. The script by default should not allow any transaction to go through if a user does not submit his/her pet to trade. It is so weird...
|
I would certainly appreciate it :) My members are freaking out asking me to fix it, but I keep telling them I don't even know where to start. HOF to the rescue :)
|
Well can you give a try using the new trade.php script from Mys v1.2.4? I did modify the trade.php script in Mys v1.2.3, and the version you are using is apparently from v1.2.2, in which the script was not optimized yet. If by any chance the problem still occurs, lemme know quickly and I will have it fixed in no time.
|
I already did that and it still didn't work :/
|
Any luck good sir?
|
1 Attachment(s)
I found a mistake in the trade.php code and fixed it. The trade.php is reuploaded, please give a try on your site and see if this fixes the glitch. It is weird though, a trade offer is NOT supposed to be processed unless the user has input both the adoptable given and wanted.
|
Still doesn't work. I tested like this:
Test Account entered adopt they wanted. No money entered, no adopt to trade in return for. Test Account 2 accepted trade. Test Account one lost all money. Some people just want to give an adopt without offering money or a trade in return. So when they do that it takes all their money. I also tested it by offering an adopt for money and it took all my money still. |
1 Attachment(s)
Well lets try this script file then.
Note: A trade script is not a gift script, users should not attempt to trade a pet for money... |
You mean attempt to trade a pet without money/and or adopt?
|
Parse error: syntax error, unexpected '}' in /home/robynswo/public_html/trade.php on line 88
|
Oh my goodness... Add a semicolon ; to the end of line 87, this is one of the most stupid mistakes a PHP coder can make, lol...
|
LMAO! You did it twice but I fixed the other. Ok now it says:
The adoptable's id is not numeric, please go back to the last page and resubmit your trade off. So they HAVE to put in an adopt to trade for? They can't just offer an amount of money for an adopt? Plus I thought to get around that I could remove PHP Code:
|
Well the concept of trade is that they have to give a pet of their own and receive another pet from their partner, this is why it is called a trade script and not a gift script.
|
Well they're paying for the adopt they want though... so it isn't a gift.
|
It's fine though. I just posted this for my members.
Quote:
|
I see, glad you come out with a good solution. XD
|
All times are GMT -5. The time now is 09:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.