Browser MMO Video #4

Location of the Videos
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #4

Post by hallsofvallhalla »

holy crud thats wierd.

2 things to try.

1. name it something different. monsters or something

2. watch the tutorials up to about video 10 or more where I give the sql database dump. You can import it in.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video #4

Post by OldRod »

It shows you already have a table created in your Tutorials database - what is it called?
zolacat999
Posts: 62
Joined: Tue Nov 24, 2009 11:09 pm

Re: Video #4

Post by zolacat999 »

theres only 1 table in tutorials thats players
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Video #4

Post by Torniquet »

by the looks of it you have put a space after the name creatures.


incorrect table name 'creatures '

try again without the space at the end.
New Site Coming Soon! Stay tuned :D
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video #4

Post by OldRod »

Good eye!
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #4

Post by hallsofvallhalla »

no doubt. I can't believe I didn't see that! Nice catch.
zolacat999
Posts: 62
Joined: Tue Nov 24, 2009 11:09 pm

Re: Video #4

Post by zolacat999 »

Thank you sooo much, im such an idiot Im not sure why I put a space after it but thats fixed it :D
eltish96
Posts: 40
Joined: Tue Dec 22, 2009 10:21 am

Re: Video #4

Post by eltish96 »

Hey,

For some reason after i finished all the database and finished off the battle.php, i opened up the local host, went to battle.php and i got the following error message:

Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 30

Notice: Undefined index: hpoints in C:\wamp\www\Tutorial\battle.php on line 31

Notice: Undefined index: attack in C:\wamp\www\Tutorial\battle.php on line 32

Notice: Undefined index: defense in C:\wamp\www\Tutorial\battle.php on line 33

Hit points =
Attack =
Defense =



Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 42

Hit points =
Attack =
Defense =


Attack!
eltish96
Posts: 40
Joined: Tue Dec 22, 2009 10:21 am

Re: Video #4

Post by eltish96 »

Sorted the error message out, i used caps instead of lower case lol

But now, i get this:

Hit points =
Attack =
Defence =


Goblin
Hit points = 5
Attack = 3
Defence = 3


Attack!

Any reason why there is no data in the player thing?

Thanks
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #4

Post by hallsofvallhalla »

something is not right with your code and your db, post the code so we can take a look.
Post Reply

Return to “Older Browser MMO Videos”