Browser MMO Video #4
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
glad i could help
Re: Video #4
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'
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
Do you have auto increment set on 'id'?
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
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
Congratulations on 1000 posts under the subtitle of BROWSER MMO TUTORIAL .. great to be part of the action..
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
wow awesome!
Re: Video #4
i got "could get a creature!" error
what shold i do to fix it?
what shold i do to fix it?
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
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
my php fils are as you posted them
and the table pc:

and the table pc:

- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
what does the url show when you go to attack.php. like whats after the ?