Page 6 of 13

Re: Video #4

Posted: Tue Sep 08, 2009 6:18 pm
by hallsofvallhalla
glad i could help

Re: Video #4

Posted: Sat Oct 03, 2009 2:38 pm
by siim
I have an error :S and i cant fix it.....i have watched 4 video over and over again but still nothing. can anybody help please ? (sorry about bad english)

Error

SQL query: Edit

INSERT INTO `tutorial`.`creatures` (
`id` ,
`name` ,
`hpoints` ,
`attack` ,
`defense` ,
`exper`
)
VALUES (
'', 'orc', '5', '5', '5', '30'
), (
'', 'goblin', '5', '2', '2', '20'
)

MySQL said: Documentation
#1062 - Duplicate entry '0' for key 'PRIMARY'

Re: Video #4

Posted: Sat Oct 03, 2009 3:49 pm
by Hutch
Do you have auto increment set on 'id'?

Re: Video #4

Posted: Sun Oct 04, 2009 9:40 pm
by hallsofvallhalla
go to database,then go to players table, go to structure, find the feild id, should be top one, now to the right see the symbol that looks like a key? click on it. This will make id the primary field. Now edit id and make it auto increment.

Re: Video #4

Posted: Mon Oct 05, 2009 5:26 am
by mrmajic
Congratulations on 1000 posts under the subtitle of BROWSER MMO TUTORIAL .. great to be part of the action..

Re: Video #4

Posted: Mon Oct 05, 2009 1:23 pm
by hallsofvallhalla
wow awesome!

Re: Video #4

Posted: Mon Oct 12, 2009 8:40 pm
by adamrain
i got "could get a creature!" error

what shold i do to fix it?

Re: Video #4

Posted: Mon Oct 12, 2009 11:08 pm
by hallsofvallhalla
its having a problem finding the creature you are looking for. We need to see attack.php and battle.php then a screenshot of the creatures table.

Re: Video #4

Posted: Tue Oct 13, 2009 12:39 am
by adamrain
my php fils are as you posted them

and the table pc:
Image

Re: Video #4

Posted: Tue Oct 13, 2009 1:39 pm
by hallsofvallhalla
what does the url show when you go to attack.php. like whats after the ?