Jump to content
MakeWebGames

Zettieee

Members
  • Posts

    790
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Zettieee

  1. Zettieee

    Shatter?

    Hey. Not really been around much but I have been busy! Here's something I've been working on: (Assets have been purchased as I really cant do modeling!) https://giphy.com/gifs/l0K41Zbn3WYwDNBmM <-- small gif of movement system   A few screenies of the art style: http://imgur.com/a/jLNsR It's currently not playable as they is no content but thought you guys might like it. It will (I hope) be a dungeon crawler somewhat close to how Gauntlet Legends (psone) played without that edgy camera. Somewhat looking for someone to help with level design (mapping in unity) send me a pm or leave a comment.
  2. Selling both mods at a discounted price for the next 24 hours! Ajax chat: http://mccodes.com/viewmod.php?id=173 ($25) [Now $15] - free integration ! JQ inventory: http://mccodes.com/viewmod.php?id=167 ($20) [Now $15] Contact me here or via skype: scruffy.gamer Enjoy :)
  3. Formatted and fix for mysql_error()   <?php include(DIRNAME(__FILE__) . '/globals.php'); switch ($_GET['action']) { case 'adddo': add_to_do(); break; case 'adddosub': add_to_sub(); break; default: a_home(); break; } function a_home() { global $ir, $userid, $h, $c; if ($ir['user_level'] > 1) { $sql = "SELECT n.* FROM needsdone n ORDER BY status"; echo "<table width='65%'><tr><th>List</th><th>Status</th></tr>"; $q = $db->query($sql); while ($r = $db->fetch_rows($q)) { echo "<tr align='center'><td>{$r['doname']}</td><td>"; if ($r['status'] == 'Complete') { echo "<font color='green'>{$r['status']}<\font>"; } else if ($r['status'] == 'Started') { echo "<font color='yellow'>{$r['status']}<\font>"; } else { echo "<font color='Red'>{$r['status']}<\font>"; } Echo "</td></tr>"; } echo "<tr><th colspan='2' align='center'><a href='todo.php?action=adddo'>Add To List</a></th></tr></table>"; } else if ($ir['user_level'] == 1) { echo "You\'re not allowed here. <a href='index.php'> Back </a>"; } } function add_to_do() { echo "<table><tr><th>Add To The To Do List<\th><\tr> <tr><td align='center'><form action='todo.php?action=adddosub' method='post'> Name: <input type='text' name='name' /><br /> Status: <select type='dropdown' name='status'> <option value='Not Started'>Not Started</option> <option value='Started'>Started</option> <option value='Complete'>Complete</option></select><br/> <input type='submit' value='Add To List' /></form>"; } function add_to_sub() global $ir, $userid, $h, $c ; { if ($_POST['name'] == "") { echo "You did not fill out the form correctly"; } else if ($_POST['status'] == "") { echo "You did not fill out the form correctly"; } else { $_POST['name'] = $db->escape($_POST['name']); $_POST['status'] = $db->escape($_POST['status']); $db->query("INSERT INTO needsdone VALUES ('{$_POST['name']}', '{$_POST['status']}')") or die($db->error()); echo "Added to the to do list!<br/><Font color='grey'>~</font> <a href='todo.php'>back</a>"; } } $h->endpage(); ?>
  4. You can goto the mccodes.com site and download the latest 2.0.5b
  5. I think you installed the game using MYSQL driver and not MYSQLi
  6. [uSER=65371]sniko[/uSER] Come do this.
  7. You don't need to get the user's ID...
  8. Zettieee

    Get action

    So why not wrap the switch in an isset and forgot the top code?
  9. Zettieee

    Get action

    preg_replace_callback() for php7 But why define the action like that for a switch? if the action is null it should goto the default switch
  10. To me frameworks never made sense. Relearning basic functions just to start a project is a little rough for me. You're all welcome to help btw.
  11. Zettieee

    Get action

    This looks like a headache. This wont work if $_GET['action'] is a number. /E_ALL ctype_alpha ctype_alnum() works for alphanumeric characters :)
  12. Goto gym, press train. Stat bars don't change yet the page reloaded. Click home and see that your energy is gone.
  13. Not sure if a whole rewrite isn't needed. So much code is so badly written it's hard for me to do anything without breaking something else.
  14. $db->query("SELECT * FROM `mail` WHERE `mail_to` = '".$_SESSION['id']."' ORDER BY `mail_time` DESC LIMIT 20"); I selected * because the only row we didn't need was mail_read and the extra typing wasn't worth it.    
  15. Thats the idea jigsaw. Voted.php is the callback script. the voting sites see's the players made a vote and then sends them to this link.
  16.   They do NOT update on load. they update on next load.
  17. Here is the current user class: http://pastebin.com/pbaT7WKp Its rather slow and clunky The way I'm going to d it just array to object. It'll save me time on development and hopefully make it a little cleaner on the eyes. //edit here's what I was thinking of using. <?php class Z_User { function Z_User($id) { $run = mysqli_query("SELECT * FROM `grpgusers` WHERE `id`='$id'"); $users = mysqli_fetch_assoc($run); foreach ($users as $obj => $value) { $this->$obj = $value; } } } ?>   It's not perfect but it works. Example use age for people who currently use GRPG: $zuser_class = new Z_User($_SESSION['id']); <?= $zuser_class->username; ?>
  18. Would converting an array into a class object be better in the long run?
  19. Hello. after speaking with Adam he has allowed me to recode and release a custom version of GRPG. What would you, the people who use GRPG like in this version? Somethings I've already started: Converted to mysqli, securing inputs, thinking of removing the weird class system is has in favor of a more array styled system (like the one in mccodes). So any ideas you guys have post below.
  20. Anyone heard anything about GRPG or adamhull? Haven't seen him in a while. Was really looking forward to making mods for the new GRPG.
  21. I think I've posted many times that I openly support every paid mod if the person can provide proof of purchase.
  22. What file is this error from? If it's from staff_missions you need to change user_mission to daily_mission
  23. PHP7 issues with mccodes: issue #1: when you make a mistake eg: <td class="something> with a missed "</td> will cause a 500 error issue #2: output buffers not correctly working (remove the buffers from header and place them in different files
  24. Ah you proved me wrong. Now that you have provided some useful information for me I'll keep proving information to you. Feel free to msg me on skype: scruffy.gamer I'll gladly fix most of your mods. [uSER=52003]Dave Macaulay[/uSER] , [uSER=68711]KyleMassacre[/uSER] , [uSER=65371]sniko[/uSER] know I'm trustworthy with mods. :)
×
×
  • Create New...