Browser MMO Video #19
-
zolacat999
- Posts: 62
- Joined: Tue Nov 24, 2009 11:09 pm
Re: Video #19
Just watched this video, great nice to make some more progress and i think i understood most of it
not got time to watch video 20 now will probably watch that tomorrow
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video #19
It is probably best to let video 19 soak in anyway. It is best for most people to only watch one or two a day at the most, and then sleep on it since that is supposedly when your brain organizes all of the data it absorbed for the day.
The indelible lord of tl;dr
Re: Video #19
when i go into the arena the battle.php doesnt pull a creature from the database
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #19
i am looking at this issue today. Will have a "fix" up and some new videos.
Re: Video #19
Why can't i add any weapons to the stores. And i am getting a error on my equipped .php it says unidentified index Local on line 27
Code: Select all
<?php
include_once 'connect.php';
session_start();
include_once 'logo.php';
?>
<link href="style.css" rel="stylesheet" type="text/css" />
<?php
if (isset($_SESSION['player']))
{
$player=$_SESSION['player'];
}
else
{
echo "Not Logged in <br><br> <A href='login.php'>Login</a>";
exit;
}
$playerinfo="SELECT * from players where name='$player'";
$playerinfo2=mysql_query($playerinfo) or die("could not get player stats!");
$playerinfo3=mysql_fetch_array($playerinfo2);
include_once 'statpanel.php';
$id=$playerinfo3['id'];
?>
</div>
<div id="table">
<?php
$type=$_GET['type'];
$local=$_GET['local'];
$randid=$_GET['randid'];
if ($type=="w")
{
$updateequip="Update playerweapons SET equip=0 WHERE pid='$id' AND equip=1";
mysql_query($updateequip) or die("Could not update equipment");
$reequip="Update playerweapons set equip=1 where pid='$id' AND randid='$randid'";
mysql_query($reequip) or die("Could not update equipment2");
echo "<center><big><big>Weapon Equipped<br></big></big>";
echo "<br><A href='index.php'>Go back</a>";
}
if ($type=="a")
{
$updateequip="Update playerarmor SET equip=0 WHERE pid='$id' AND equip=1 AND location='$local'";
mysql_query($updateequip) or die("Could not update armor");
$reequip="Update playerarmor set equip=1 where pid='$id' AND randid='$randid' AND location='$local'";
mysql_query($reequip) or die("Could not update armor2");
echo "<center><big><big>Armor Equipped<br></big></big>";
echo "<br><A href='index.php'>Go back</a>";
}
?>
</div>
-
Shihonoryu
- Posts: 255
- Joined: Sun Dec 12, 2010 7:30 am
Re: Video #19
im getting:
Undefined variable: bypass in C:\wamp\www\Tutorial\index.php on line 60
Also getting these on armor shop and weapon shop
Undefined variable: bypass in C:\wamp\www\Tutorial\index.php on line 60
Code: Select all
if($bypass != 1)
{
echo "<b><big><u>" . $playerinfo3['location'] . "</u></big></b><br>";
echo "<a href='store.php'>Visit Store</a><br>";
echo "<a href='weaponshop.php'>Visit Weapon Shop</a><br>";
echo "<a href='armorshop.php'>Visit Armor Shop</a><br>";
echo "<a href='inn.php'>Visit Inn</a><br>";
echo "<a href='spelltrainer.php'>Visit Spell Trainer</a><br>";
echo "<a href='battle.php'>Battle in Arena</a><br>";
echo "<a href='index.php?map=1'>Go to Map</a><br>";
}- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #19
somewhere at top of page, maybe after player query add
Code: Select all
$bypass = 0;