Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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: 574,696
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
 


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 05:59 PM.

Currently Active Users: 4075 (0 members and 4075 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636