Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #31  
Old 12-18-2009, 01:18 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,065
Ashje
Default RE: Breeding System - Complete!

I'll give it a shot, thanks for the help. XD
Reply With Quote
  #32  
Old 12-18-2009, 11:40 AM
gjac1 gjac1 is offline
Member
 
Join Date: Feb 2009
Posts: 101
Credits: 8,462
gjac1
Default RE: Breeding System - Complete!

Arianna, how much work do you think it would be to add a cost system to this mod ??

At the moment members can just breed as many as they like but if it costs them credits then it will limit the amount they can breed :)
Reply With Quote
  #33  
Old 12-18-2009, 01:02 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,285
Arianna will become famous soon enough
Default RE: Breeding System - Complete!

Not much, just send me a PM and I can try and get it to work, especially as that would be good for my site, too. :)
Reply With Quote
  #34  
Old 12-21-2009, 04:23 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,065
Ashje
Default RE: Breeding System - Complete!

Hi Arianna,

I tried removing the date codes but it still isn't transferring the newly born adoptable to the user's account. If you could, please help.

Thanks,
Ashje.
Reply With Quote
  #35  
Old 12-22-2009, 01:06 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,285
Arianna will become famous soon enough
Default RE: Breeding System - Complete!

Hmm... That still is very weird. Could you make a line, after it's supposed to insert it, which echoes the query (or goes $article_content = $article_content . $query;, I guess) and paste that in. We can compare it to your table, then, to see what's wrong. :)
Reply With Quote
  #36  
Old 12-23-2009, 04:34 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,065
Ashje
Default RE: Breeding System - Complete!

Thank you,

I'll try it as soon as my FTP gets up and running again. :D I'm excited, I'm learning PHP. XD

So I would say...
PHP Code:
             $name $new_name;

               
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender')");
               
$article_content $article_content $query;
               
$article_content $article_content."<p><img src='".$eggimage."'><br /><a href='myadopts.php'>Manage ".$name." now!</a>
               It's type is "
.$type." and it was born on ".$date."! You can change its name to your liking.</p>"
or

PHP Code:
             $name $new_name;

               
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender')");
               
$article_content $article_content$query."<p><img src='".$eggimage."'><br /><a href='myadopts.php'>Manage ".$name." now!</a>
               It's type is "
.$type." and it was born on ".$date."! You can change its name to your liking.</p>"
Thanks,
Ashje.
Reply With Quote
  #37  
Old 12-23-2009, 04:38 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,285
Arianna will become famous soon enough
Default RE: Breeding System - Complete!

Hmm, maybe...
PHP Code:
  $query "INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender')";
mysql_query($query);
               
$article_content $article_content$query."<p><img src='".$eggimage."'><br /><a href='myadopts.php'>Manage ".$name." now!</a>
               It's type is "
.$type." and it was born on ".$date."! You can change its name to your liking.</p>"
Reply With Quote
  #38  
Old 12-23-2009, 09:03 AM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 19,865
mapleblade
Default RE: Breeding System - Complete!

well it works fine at me, butthe new adoptable egg doesnt show up in myadopts.php?
Reply With Quote
  #39  
Old 12-23-2009, 10:17 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,285
Arianna will become famous soon enough
Default RE: Breeding System - Complete!

That's weird. Are you sure you have the right colums in your table?
Reply With Quote
  #40  
Old 12-23-2009, 09:40 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,065
Ashje
Default RE: Breeding System - Complete!

Hi Arianna,
I tried that and it worked! The adoptables were being inserted into the database. Problem is, it was showing the query on the page. So I removed your edit and it stopped working again. So then I put
PHP Code:
mysql_query($query); 
back in but left out
PHP Code:
$query
and it hid the query but still inserted the new adopt into the database. I think that was the problem. Anyway, thank you for the support. The script is awesome. XD

Ashje
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
Installation Complete: Site is Completely Blank? Bhavani Questions and Supports 3 09-14-2014 06:43 PM
a more advanced breeding system needed maximillion Questions and Supports 11 06-28-2011 02:37 PM
Help me with the breeding system of Arianna Sensacionsk8 Questions and Supports 2 03-21-2011 11:54 AM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 02:38 PM
How to make a breeding System? SieghartZeke Questions and Supports 23 10-19-2009 06:11 PM


All times are GMT -5. The time now is 05:06 AM.

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