Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Breeding System - Complete! (http://www.mysidiaadoptables.com/forum/showthread.php?t=1156)

Arianna 11-06-2009 02:18 PM

RE: Breeding System - Complete!
 
I'm sorry, I've been busy. I can try and troubleshoot, though.
Maybe, try changing it back to breeding.php. There may be some file links, which could be disrupting it. :)
Have you installed the gender system/given existing pets genders? I had to do it manually, by making the default value 'female', then changing the rest to male.

SieghartZeke 11-06-2009 02:38 PM

RE: Breeding System - Complete!
 
err i dont have complted the gender system because in a part,when ichanged the code i can managae the new charatcer!

Seapyramid 11-06-2009 02:48 PM

RE: Breeding System - Complete!
 
Quote:

Originally Posted by SieghartZeke
err i dont have complted the gender system because in a part,when ichanged the code i can managae the new charatcer!

That is why you are getting the error then. the script is looking for the gender in the database & it's not there.

Hall of Famer 11-06-2009 04:34 PM

RE: Breeding System - Complete!
 
I installed this addon, and get the two warnings below:

Quote:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in public_html/adoption/breeding.php on line 81

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in public_html/adoption/breeding.php on line 99
Dunno if the breeding system will still work. XD

SieghartZeke 11-07-2009 06:03 AM

RE: Breeding System - Complete!
 
But when i add a code,4 the gender, i dont show the new adoptable!
And 4 the Sql ,i dont know where to put ...and what put.....

Arianna 11-07-2009 09:16 AM

RE: Breeding System - Complete!
 
I don't get what you're trying to say now... Are you saying you're having problems with this code, or with the gender code?
Why don't you just add the gender table, give the pets genders, and see if the breeding system works. Then we can work on the inserting into the table/

SieghartZeke 11-07-2009 12:06 PM

RE: Breeding System - Complete!
 
No with the breeding no....is the gender that give me problem!
When i add this code:

Code:

mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender')");
The character that i adopt say that is not in the database...and sorry 4 the bad grammar but im italian and i have so many problme to traslate the word that i say.....

Then......i need to add a new table in owned adoptable...but i dont know what i need to put!

Seapyramid 11-07-2009 12:16 PM

RE: Breeding System - Complete!
 
Adding a row to a table is quite easy & in the Breeding system it is listed how to set it. Please, just try to read and learn a bit so that you can understand at least some of what you are told. http://www.w3schools.com/PHP/php_mysql_intro.asp

Sea

Ashje 12-17-2009 10:29 PM

RE: Breeding System - Complete!
 
Hi, Thank you for posting this. It's excellent. My problem is that once an egg is successfully bread ( is that the past tense of breed? Bread? Not the food bread T.T) it isn't transferred to the user's account. The only edit I've made is changing the required levels from 2 to 0. If you have time, could you please help? Oh and I'm using your gender system as well. Also very awesome.

Thanks,
Ashje =D

Arianna 12-18-2009 12:44 AM

RE: Breeding System - Complete!
 
Cool! I don't know why - why don't you try this. After where it's supposed to insert it, write:
PHP Code:

$article_content $article_content $query

This will allow you to see your query, and check if something is going wrong. Maybe you don't have the same number of columns as I do (I have a date column, too) so you might want to check that.
==
Lol, I just noticed that we don't do that in the query. If you put it in an external string, you can echo it. For now, try removing '$date', from the sting.


All times are GMT -5. The time now is 01:55 AM.

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