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
  #6  
Old 11-07-2011, 11:58 AM
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: 618,854
Hall of Famer is on a distinguished road
Default

Well I would do the following changes:

PHP Code:
if($owned_adoptable['isfrozen'] == "no"){
        
$result runquery("SELECT * FROM {$prefix}users WHERE username='{$owned_adoptable['owner']}'");
        
$user mysql_fetch_array($result);
        
$reward clickreward(grabanysetting('rewardmoney'), $owned_adoptable['owner'], $user['money']);     
        
$newamount $user['money'] + $reward;    
        
runquery("UPDATE {$GLOBALS['prefix']}users SET `money` = '{$newamount}' WHERE `username` = '{$owned_adoptable['owner']}'"); 
As you can see, the program looks a bit confusing 'cause the adoptable owner's money data cannot be easily retrieved from database. The mysql SELECT query has to be executed and mysql_fetch_array needs to be manipulated. Also the $article_content line is removed for a good reason. Try this on your site and lemme know if it works.
__________________


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
Modification Dictionary AlexC Mys v1.2.x Mods 2 07-05-2011 09:44 AM
Modification Directory Kaeliah Mys v1.1.x Mods 14 02-28-2011 05:14 PM
Custom Profile Modification Bloodrun Mys v1.1.x Mods 50 01-22-2011 09:17 PM
A quick Profile Add-on Modification Bloodrun Addons/Mods Graveyard 18 06-07-2009 10:15 PM
Modification Out-Dated New one will be added. Bloodrun Addons/Mods Graveyard 19 05-23-2009 01:52 AM


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

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