Browser MMO Video #17
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Browser MMO Video #17
Finally!
[youtubehd]http://www.youtube.com/watch?v=irA1xK8_Q0o[/youtubehd]
files in zip, for both 17 and 18
http://www.mediafire.com/?envnmkyfmrz
[youtubehd]http://www.youtube.com/watch?v=irA1xK8_Q0o[/youtubehd]
files in zip, for both 17 and 18
http://www.mediafire.com/?envnmkyfmrz
Re: Video #17
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

- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #17
its all there in the first link. The database export is in the zip file.
Re: Video #17
oo sorry i did not see the .SQL file 

Re: Video #17
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
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
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #17
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.
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.
Re: Video #17
yer that fixed it thanks halls
every 1 els that has this problem make shure it looks like this
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
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>
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
Re: Video #17
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.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #17
thanks for posting the fixed code, i will fix the source
Re: Video #17
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

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 :*