Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Solution to fix the glitch in Mys/RA v1.10 (http://www.mysidiaadoptables.com/forum/showthread.php?t=1703)

Hall of Famer 01-16-2011 10:34 PM

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_

Kaeliah 01-16-2011 10:46 PM

Yay! Glitch fix. :happycbig: Thanks for posting this.

Hall of Famer 01-16-2011 10:46 PM

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

Kaeliah 01-16-2011 10:49 PM

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

Hall of Famer 01-16-2011 10:57 PM

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


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.