Browser MMO Video #17

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

Browser MMO Video #17

Post by hallsofvallhalla »

Finally!
[youtubehd]http://www.youtube.com/watch?v=irA1xK8_Q0o[/youtubehd]

files in zip, for both 17 and 18

http://www.mediafire.com/?envnmkyfmrz
Kintama
Posts: 50
Joined: Mon Nov 16, 2009 9:41 pm

Re: Video #17

Post by Kintama »

yo Halls can you upload the hole files incluing the Database plz cuz i had to reformat my hole pc and i lost every think i did :( so plz can you upload it
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #17

Post by hallsofvallhalla »

its all there in the first link. The database export is in the zip file.
Kintama
Posts: 50
Joined: Mon Nov 16, 2009 9:41 pm

Re: Video #17

Post by Kintama »

oo sorry i did not see the .SQL file :P
Kintama
Posts: 50
Joined: Mon Nov 16, 2009 9:41 pm

Re: Video #17

Post by Kintama »

whats this error thing im getin

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant exper - assumed 'exper' in C:\wamp\www\statpanel.php on line 23

and also when i attack i get


kintama's Attack
kintama's Attack roll is 10
orc's defense roll is 7
kintama and hits!
For 0 points of damage.

orc's Attack
orc's Attack roll is 21
kintama's defense roll is 26
orc misses!

my attack is always 0
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #17

Post by hallsofvallhalla »

weird, has anyone else had this issue?

Check the database and make your player table has level


also I often forget to use single quotes around array variables, if this is the problem i will update new source just makes sure variables like $playerinfo3[level] is like this $playerinfo3['level'] with single quotes.
Kintama
Posts: 50
Joined: Mon Nov 16, 2009 9:41 pm

Re: Video #17

Post by Kintama »

yer that fixed it thanks halls

every 1 els that has this problem make shure it looks like this

Code: Select all

<div id="lpanel">
<?php
echo "<u><b> " . $playerinfo3['name'] . "</b></u><br>";
echo $playerinfo3['pclass'] . "<br>";
//////////////new for 17
echo "Level " . $playerinfo3['level'] . "<br>";



echo "Attack = " . $playerinfo3['attack'] . "<br>";
echo "Defense = " . $playerinfo3['defense'] . "<br>";
echo "Hit Points<br>";
echo "Spell Points<br><br>";
echo "<b><big><u>Gold</u></big></b><br>";
echo $playerinfo3['gold'];
?>
<?php
echo "<br><br>";
echo "<a href='equipment.php'>Equipment<br></a>";
////////////////////////new for video 17////////////////
echo"<br>";
 $expneeded = ($playerinfo3['level'] * 100) * $playerinfo3['level'];
  if ($playerinfo3['exper'] >= $expneeded)
 {	echo "<br><a href='levelup.php'>Level Up!!</a>";}
?>
</div>


<div id= "hpointsback">
<?php
echo "<img src='images/barback.png'>";
?>
</div>

<div id= "hpoints">
<?php
$width = ($playerinfo3['hpoints'] / $playerinfo3['maxhp']) * 100;
echo "<img src='images/hpoints.png' width='$width' height='15' >";
?>
</div>

<div id= "spointsback">
<?php
echo "<img src='images/barback.png'>";
?>
</div>

<div id= "spoints">
<?php
$width = ($playerinfo3['spoints'] / $playerinfo3['maxspoints']) * 100;
echo "<img src='images/spoints.png' width='$width' height='15' >";
?>
</div>

and that should fix it
were you get

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant exper - assumed 'exper' in C:\wamp\www\statpanel.php on line 23

i still carnt accack tho witch is wierd
Genaga
Posts: 86
Joined: Fri Dec 11, 2009 7:05 pm

Re: Video #17

Post by Genaga »

I've not followed the source but 4playerinfo3 isn't defined there but I'm guessing its a sql query? In your database is the table label called "level" or have you added capitals? Make sure the sql query is correct too.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video #17

Post by hallsofvallhalla »

thanks for posting the fixed code, i will fix the source
rangersko
Posts: 9
Joined: Wed Dec 30, 2009 8:52 pm

Re: Video #17

Post by rangersko »

Kintama wrote:whats this error thing im getin

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant level - assumed 'level' in C:\wamp\www\statpanel.php on line 22

Notice: Use of undefined constant exper - assumed 'exper' in C:\wamp\www\statpanel.php on line 23

and also when i attack i get


kintama's Attack
kintama's Attack roll is 10
orc's defense roll is 7
kintama and hits!
For 0 points of damage

orc's Attack
orc's Attack roll is 21
kintama's defense roll is 26
orc misses!

my attack is always 0

same here :( is :
Notice: Undefined index: creature in C:\Downloads\wamp\www\tutorial\battle.php on line 86
Could not update player

Undefined index: gold in C:\Downloads\wamp\www\tutorial\statpanel.php on line 13
Gold =

Notice: Undefined index: pclass in C:\Downloads\wamp\www\tutorial\statpanel.php on line 4

Attack = 0
Defense = 0
Hit Points
Spell Points

and a load more under neath it :*
Post Reply

Return to “Older Browser MMO Videos”