Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2011, 03:17 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default 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?
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 12-09-2011 at 02:25 PM.
Reply With Quote
  #2  
Old 12-09-2011, 02:46 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

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.
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 12-09-2011, 07:50 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

Could it be this part?

PHP Code:
$query "SELECT * FROM ".$GLOBALS['prefix']."users WHERE username = '$tradefrom'";
        
$result runquery($query);
        
$num mysql_numrows($result);

        
//Loop out code
        
$i=0;
        while (
$i 1) {

        
$othercash=@mysql_result($result,$i,"money");

        
$i++;
        }

        
$moneyleft $othercash $tradecost;

        
$moneyleft $moneyleft $cashoffered;

        if(
$moneyleft >= 0){

        
$article_content $article_content."<img src='templates/icons/yes.gif' border=0> ".$tradefrom."'s Cash Amount OK<br>";


        } 
It's driving me mad! MAD I SAY!!!
__________________

Check out SilvaTales
Reply With Quote
  #4  
Old 12-13-2011, 12:48 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 342,111
Hall of Famer is on a distinguished road
Default

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...
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 12-13-2011, 04:05 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

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 :)
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 12-13-2011, 10:15 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 342,111
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 12-13-2011, 10:40 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

I already did that and it still didn't work :/
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 12-14-2011, 02:56 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

Any luck good sir?
__________________

Check out SilvaTales
Reply With Quote
  #9  
Old 12-14-2011, 04:50 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 342,111
Hall of Famer is on a distinguished road
Default

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.
Attached Files
File Type: php trade.php (11.0 KB, 4 views)
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 12-14-2011, 05:19 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,736
SilverDragonTears is on a distinguished road
Default

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.
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 12-14-2011 at 05:23 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make pets' trade status Not For Trade by default tahbikat Questions and Supports 3 12-13-2015 10:21 PM
Trade Glitch AlexC Questions and Supports 6 05-05-2012 07:39 PM
Pound Glitch! MaximumRide Questions and Supports 10 04-24-2012 12:28 PM
Solution to fix the glitch in Mys/RA v1.10 Hall of Famer Questions and Supports 4 01-16-2011 10:57 PM
Glitch in PHP Installation?! Jgl5858 Questions and Supports 13 11-26-2010 02:10 PM


All times are GMT -5. The time now is 10:33 PM.

Currently Active Users: 9800 (0 members and 9800 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636