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
  #11  
Old 11-08-2011, 04:30 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: 339,691
Hall of Famer is on a distinguished road
Default

Umm now this is strange, your hosting package is not much worse than BMR's MA, so it should be good enough to handle an individual site.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #12  
Old 11-08-2011, 11:14 PM
TheShadow TheShadow is offline
Member
 
Join Date: Apr 2011
Posts: 17
Gender: Female
Credits: 2,755
TheShadow is on a distinguished road
Default

Which is why I'm inclined to think it's not a server issue. It's now starting to affect adopts getting clicks as well, so pretty much everything is breaking down :c

I'm offering a $50 reward to whomever helps us fix this. It's a very serious issue D:
Reply With Quote
  #13  
Old 11-09-2011, 06:04 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,423
PokePets
Default

What about updating the money 1x a day?
New field: Clicksdonetoday end then cronjob:
$rand (1,5)
$newmoney = clicksdonetoday x $rand
Update users money set money to $money + $newmoney

Just a fast example
Reply With Quote
  #14  
Old 11-13-2011, 02:15 PM
Csar Csar is offline
Member
 
Join Date: Oct 2011
Posts: 7
Gender: Male
Credits: 784
Csar is on a distinguished road
Default

Quote:
Originally Posted by TheShadow View Post
Which is why I'm inclined to think it's not a server issue. It's now starting to affect adopts getting clicks as well, so pretty much everything is breaking down :c
Maybe the problem is caused by mysql queues... Just try this:

Go to levelup.php [145] there should be 2 lines like this:

PHP Code:
    $newamount $GLOBALS['money'] + $reward;
    
runquery("UPDATE {$GLOBALS['prefix']}users SET `money` = '{$newamount}' WHERE `username` = '{$loggedinname}'"); 
Try replacing with this:
PHP Code:
    $newamount $GLOBALS['money'] + $reward;
    
runquery("UPDATE {$GLOBALS['prefix']}users SET `money` = `money`+{$reward} WHERE `username` = '{$loggedinname}'"); 
This will probably cause Mysql to just increase instead of overwriting. Worth a try?

EDIT: Is money a string? If so it'll probably not work... Hope it isn't like this. Otherwise you'll have to try adding a field that is called "lock" and that is changed to 1 at the beginning of the script and changed to 0 at the end. We'll also have to add some code to detect if the lock is activated and "sleep" 0.1 seconds and repeat the query...

Last edited by Csar; 11-13-2011 at 02:18 PM.
Reply With Quote
  #15  
Old 11-16-2011, 11:38 PM
TheShadow TheShadow is offline
Member
 
Join Date: Apr 2011
Posts: 17
Gender: Female
Credits: 2,755
TheShadow is on a distinguished road
Default

Csar's solution works wonderfully. ^________^ Thank you so much ♥ (Please PM me your paypal?)
Reply With Quote
  #16  
Old 12-02-2011, 12:19 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,646
SilverDragonTears is on a distinguished road
Default

I can't find this in my levelup.php....
__________________

Check out SilvaTales
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


All times are GMT -5. The time now is 11:48 AM.

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