Browser MMO Video #16

Location of the Videos
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video#16

Post by ZeroComp »

you should add a thing for the arena in a tutorial to fix this random creature thing because I was level 3 and I went against my level 17 minotaur.....
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
countvoldermort
Posts: 165
Joined: Tue Oct 13, 2009 4:22 pm

Re: Video#16

Post by countvoldermort »

... halls when you gonna get me the source for vid 16, i getin errors on elses?? you said you would get me them on Mon Nov 16, 2009 6:59 pm, please try :) please its been just over 2 weeks? its like 4 weeks... anyway please try to get them!
Im dumb;)
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video#16

Post by ZeroComp »

yes I have some errors I will post them up so you all can look at them
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: Video#16

Post by darspire »

you dont only have to ask halls. you can ask anyone that is not getting any errors
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
countvoldermort
Posts: 165
Joined: Tue Oct 13, 2009 4:22 pm

Re: Video#16

Post by countvoldermort »

i have errors with inn.php:

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);
$pllocation=$playerinfo3['location'];
$maxhp = $playerinfo3['maxhp'];
include_once 'statpanel.php';
?>
</div>
<div id="table">
 <?php
if (isset($_POST['price']))
{
  $price = $_POST['price'];
   $exitgreet = $_POST ['exitgreet'];
if ($playerinfo3['gold'] < $price)
{
 echo "You do not have enough Gold to stay at this Inn!";
  echo "<center><a href='index.php'>Go back</a></center>";
  exit;
}
echo "<center>" . $exitgreet . "<br /><br />";
echo "<A href='index.php'>Leave Inn</a></center>";

$updateplayer="update players set hpoints='$maxhp',gold=gold-'$price' where name='$player'";
  mysql_query($updateplayer) or die("Could not update player");
exit;
}
else
{

 $inninfo="SELECT * from locations where name='$pllocation' AND type='inn'";
$inninfo2=mysql_query($inninfo) or die("Could not get player stats!");
$inninfo3=mysql_fetch_array($inninfo2);

 echo "<center>" . $inninfo3['greeting'] . " <br /><br />";
 echo "The current price of this Inn is" . $inninfo3['price'] . " Gold<br /><br />";
 echo "Would you like to stay?<br /></center>";
 }
  ?>
  <center>
  <form method="post" action="inn.php">
  <input type="submit" value="Yes"><br /><br />
  <input type="hidden" name="price" value="<?php echo $inninfo3['price'];?>"  />
   <input type="hidden" name="exitgreet" value="<?php echo $inninfo3['exitgreet'];?>" />
   </form>
   <form action="index.php">
  <input type="submit" value="No">
  </form></center>
  </div>
  
  
  
whats wrong with that? and attack.php is giveing me random numbers
Im dumb;)
User avatar
Lord Strife
Posts: 104
Joined: Wed Oct 28, 2009 3:10 pm

Re: Video#16

Post by Lord Strife »

you really need to include your error messages so we can help you better
countvoldermort
Posts: 165
Joined: Tue Oct 13, 2009 4:22 pm

Re: Video#16

Post by countvoldermort »

attack.php error: random numbers(like defence and attack is bigger then it should be, and i have 999 attack, i attack a creature with 4 defence and i died?)

inn.php error: Greeting and exit greeting not showing and not showing price, or takeing gold away!...

yea im sorry :) i forgot!
Im dumb;)
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video#16

Post by hallsofvallhalla »

i have a new video coming this week, I PROMISE!!!!! Will include source, I PROMISE!!!!
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Video#16

Post by ZeroComp »

THANK YOU HALLS!!!!!
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
countvoldermort
Posts: 165
Joined: Tue Oct 13, 2009 4:22 pm

Re: Video#16

Post by countvoldermort »

:) :) :) :) goood, then i can have no problem! :) :) :) :)
Im dumb;)
Post Reply

Return to “Older Browser MMO Videos”