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 01-16-2011, 10:34 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: 396,191
Hall of Famer is on a distinguished road
Default Solution to fix the glitch in Mys/RA v1.10

If you have a heavily modified version of Mys/RA v1.10 and cannot upgrade to Mys v1.11 at this moment, I have an alternative solution for you. Just open levelup.php and find the lines below:

PHP Code:
// Start Rewards 
                   
                  // ************************************************   
                   
                   
                  //Get currency on level up 
                   
                  
$query "SELECT * FROM `adopts_users` WHERE `username`='$loggedinname'"
                  
$result mysql_query($query); 
                  
$num mysql_numrows($result); 
                   
                  
$i 0
                  while (
$i 1) { 
                      
$dollar = @mysql_result($result$i"dollar"); 
                       
                      
// Change this number 10 to the number of currency you want users to earn on level up   
                      
$amount rand(515); 
                      
$newbalance $dollar $amount
                       
                      
$i++; 
                  } 
                   
                  
mysql_query("UPDATE `adopts_users` SET `dollar`='" $newbalance "' WHERE `username`='$loggedinname'"); 


Replace with:

PHP Code:
// Start Rewards
                  
                  // ************************************************  
                  
                  
                  //Get currency on level up
                  
                  
$query "SELECT * FROM `".$prefix."users` WHERE `username`='$loggedinname'";
                  
$result mysql_query($query);
                  
$num mysql_numrows($result);
                  
                  
$i 0;
                  while (
$i 1) {
                      
$dollar = @mysql_result($result$i"dollar");
                      
                      
// Change this number 10 to the number of currency you want users to earn on level up  
                      
$amount rand(515);
                      
$newbalance $dollar $amount;
                      
                      
$i++;
                  }
                  
                  
mysql_query("UPDATE `".$prefix."users` SET `dollar`='" $newbalance "' WHERE `username`='$loggedinname'"); 
This should solve all your problem if you do not use the default prefix adopts_
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #2  
Old 01-16-2011, 10:46 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 33,408
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Yay! Glitch fix. Thanks for posting this.
Reply With Quote
  #3  
Old 01-16-2011, 10:46 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: 396,191
Hall of Famer is on a distinguished road
Default

Well again the best solution is to simply download Mys v1.11 XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 01-16-2011, 10:49 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 33,408
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

I'm actually waiting to see the release with Arianna's version of the base(if it's going to happen) and I'll probably use that one. :3 Or I'll just use the latest version she's posted. I like the efficiency thing. XD
Reply With Quote
  #5  
Old 01-16-2011, 10:57 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: 396,191
Hall of Famer is on a distinguished road
Default

Yeah me too, now Arianna must feel loved and appreciated. XD
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
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
Trade Glitch AlexC Questions and Supports 6 05-05-2012 07:39 PM
Promo.php glitch SilverDragonTears Questions and Supports 6 10-28-2011 10:13 AM
Glitch in PHP Installation?! Jgl5858 Questions and Supports 13 11-26-2010 02:10 PM
Another Level Up Glitch exactly33 Questions and Supports 2 01-02-2009 11:50 PM
Level up glitch JayGatsby Questions and Supports 3 12-30-2008 09:44 AM


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

Currently Active Users: 774 (0 members and 774 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