Jump to content
MakeWebGames

tprice88

Members
  • Posts

    15
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by tprice88

  1. Maybe i think his link was bad also, not sure if he fixed it.
  2. Lol what is that, that coding looks so confusing.
  3. i haved used mccodes, yet but most games would have a jailcheck. i just noticed the link has a error looks like it should be [<a href='itemuse.php?ID=109'>use</a>]
  4. You most likely need to check the file iitemuse.php and see if theres a jailcheck that stops it from finding ids, then tell it to skip it if the id is 109
  5. Yah this is just a Deveolpment test, its running off my pc, when i turn my pc off the game does down. it should be up now.
  6. The register and login has ben changed as u suggested, And the xss vulnerabilities there was only a few and there fixed.
  7. Thanks for the ideas a_bertrand.
  8. Check the game out here http://70.140.200.130 This game is coded from scratch using PDO and Mysql. I will be making this into a easy to use Game Engine. I was going to use Twig, but i decided to not use a Template Engine, as i could do almost the same thing i needed with just php. Let me know any features u think i should change or add to the game. I will work on graphics when the coding is complete.
  9. its back up now
  10. i don't think it looks anything like GRPG, i know i used similar colors as it. but those are only temporary until i finish the engine and make some graphics. and i dont think grpg has coding like this function Usercheck($username) { $db = connect(); $st = $db->prepare("select username from users where username=?"); $st->bindParam(1, $username); $st->execute(); if($st->rowCount() ==1) { echo '<div class="S-Game"><h2>Error</h2>Username allready in use.</div>'; return true; } }
  11. Its not an engine its all coded from scratch, its no where near complete though, and a few of the functions are not implemented yet.
  12. please delete this post.
  13. If im making a Log with its own table in MYSQL should i put separate structures for USERNAME,USERID, AND NAMECOLOR or just store USERNAME then on my page i can search users where username=username then grab the userid and namecolor from there.
  14. Thanks, that outcome is working much better then mine :cool:
  15. This has ben really hard for me I have been working on this for 3 days and am about to give up lol... :( I'm trying to code a feature in my game that the outcome is successful based on a percentage, and this percentage needs to go up the more you use the feature. You start low at 1% and would goto jail most of the time, or just fail the feature. But as u do it more at hit 100% you would be successful every time here is the code I got so far. If anyone knows the correct way to code this and point me in the right direction it would be very helpful I'm pretty sure I have to recode most of this. if crime chance hits 100 this way itll always be 1 so u will always be succeful but there must be a better way to do this with percents. crimechance1 is set to default 1 so it starts as 1 and goes up each time u do the function at 100 u will always complete the function.. i need this to work at percents though example at 60 u have 60% chance of passing at 80 u have 80% chance of passing.   <?php if ($_POST['Commit']){ $radiobutton=$_POST['radiobutton']; if ($radiobutton == "1"){ $sql = "SELECT * FROM users WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $crimechance1 = htmlspecialchars($row->crime1); $crime_chance = 100 / $crimechance1; $crimechance1++; if ($crime_chance == 1){ $result = mysql_query("UPDATE users SET exp='100' WHERE name='$name'") or die(mysql_error()); echo "You passed the Function"; } else { echo "You failed the Function"; } } } ?>
×
×
  • Create New...