Page 3 of 4

Re: Video#16

Posted: Tue Dec 08, 2009 9:52 pm
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.....

Re: Video#16

Posted: Tue Dec 08, 2009 9:58 pm
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!

Re: Video#16

Posted: Tue Dec 08, 2009 10:14 pm
by ZeroComp
yes I have some errors I will post them up so you all can look at them

Re: Video#16

Posted: Wed Dec 09, 2009 8:13 pm
by darspire
you dont only have to ask halls. you can ask anyone that is not getting any errors

Re: Video#16

Posted: Wed Dec 09, 2009 8:51 pm
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

Re: Video#16

Posted: Wed Dec 09, 2009 9:01 pm
by Lord Strife
you really need to include your error messages so we can help you better

Re: Video#16

Posted: Wed Dec 09, 2009 10:50 pm
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!

Re: Video#16

Posted: Thu Dec 10, 2009 1:52 am
by hallsofvallhalla
i have a new video coming this week, I PROMISE!!!!! Will include source, I PROMISE!!!!

Re: Video#16

Posted: Thu Dec 10, 2009 2:14 am
by ZeroComp
THANK YOU HALLS!!!!!

Re: Video#16

Posted: Thu Dec 10, 2009 7:32 am
by countvoldermort
:) :) :) :) goood, then i can have no problem! :) :) :) :)