Jump to content
MakeWebGames

JamesRage

Members
  • Posts

    86
  • Joined

  • Last visited

Everything posted by JamesRage

  1. Did anyone get around to making something like this?? Been after one for months now!
  2. Looks like talent runs through the family :] I have very minimal experience with Windows movie maker if thats anything you're asking for xD
  3. I updated a users online script I found and made it concise and basic to suit my needs, so if anyone else here prefers basic here you go; http://pastebin.com/MYTwKUEE :o
  4. I can attempt this.. but it will take about a day for me (fairly new to php). :)
  5. Nice modification! :o
  6. sorry if my post came out wrong. I read a article about a few kids committing crimes in the uk recently. I thought there might be a link. Thats all lol. :)
  7. how old did the kids look? What race were they?? :confused:
  8. hey... Ive been working on a test site recently which will contribute to a game I will be making soon. However I don't feel im completely ready and confident with mccodes so I need someone to help me Here and there with functions etc. Ive left my Skype below for you all. :) Thanks in advance! Skype: jamesrage4
  9. If you have the images/css/html I think I could integrate it for you, I've done it successfully once before. Let me know :)
  10. I have, im just not very good at fixing errors but thats how you learn right, trial and error :confused: Thanks btw, i'm going to test that :)
  11. V2 pal. :confused:
  12. i got everything working with this mod to, except the last step, can someone please redo the last step for me??   echo (' <table width = "100%" cellspacing = "1" class = "table"> <tr> <th colspan = "3">User Comments</th> </tr>'); $Data = mysql_query("SELECT g.`ID`,g.`SenderID`,g.`RecieverID`,g.`Comment`,u.` userid`,u.`username` FROM `gComments` g LEFT JOIN `users` u "."ON g.`SenderID` = u.`userid` WHERE (`RecieverID` = ".abs(intval($_GET['u'])).") LIMIT 20"); if(!mysql_num_rows($Data)) { echo ('<tr> <td colspan = "1">This user has no comments.</td> </tr> </table>'); exit($h->endpage()); }else{ while($cData = mysql_fetch_array($Data)) { echo (' <tr> <td width = "15%">'.htmlentities($cData['username']).'</td> <td>'.stripslashes(htmlentities($cData['Comment'], ENT_QUOTES)).'</td>'); if(($_SESSION['userid'] === $cData['RecieverID'])) || ($ir['user_level'] == 2)) { echo (' <td width = "10%" align = "center"><a href = "/Comments.php?Delete&ID='.$cData['ID'].'"><span style = "color:#8B0000">Delete</span></a></td>'); } } echo ('</tr></table>');   I get Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/murder/public_html/viewuser3.php on line 268 :( :confused:
  13. Great mod-! But i get one error with the last step I get A critical error has occurred, and this page cannot be displayed. Please try again later. Query failed can someone please fix this??
  14. 1 ----- new housing estate?? The default V2 one is really crappy. 2 ----- New streets system with staff panel access to create the variation of outcomes etc. 3 ----- new gym system? Maybe someone can expand??
  15. You're welcome!
  16. I hate this mod alot, thanks Dragon Blade for nothing, it damaged my game.
  17. I just realized theres a slight error with the default hospital.php in MCCodes V1, the error appears on the page above the table as: Warning: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/*****/hospital.php on line 53 Code:   <?php /* MCCodes FREE hospital.php Rev 1.1.0c Copyright (C) 2005-2012 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ session_start(); require "global_func.php"; if ($_SESSION['loggedin'] == 0) { header("Location: login.php"); exit; } $userid = $_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is = mysql_query( "SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid", $c) or die(mysql_error()); $ir = mysql_fetch_array($is); check_level(); $fm = money_formatter($ir['money']); $cm = money_formatter($ir['crystals'], ''); $lv = date('F j, Y, g:i a', $ir['laston']); $h->userdata($ir, $lv, $fm, $cm); $h->menuarea(); print "<h3>Hospital</h3> <table width='75%' border='2'><tr bgcolor=gray><th>ID</th><th>Name</th <th>Level</th> <th>Time</th><th>Reason</th></tr>"; $q = mysql_query( "SELECT u.*,c.* FROM users u WHERE u.hospital > 0 ORDER BY u.hospital DESC", $c); while ($r = mysql_fetch_array($q)) { print "\n<tr><td>{$r['userid']}</td><td><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td><td> {$r['level']}</td><td>{$r['hospital']} minutes</td><td>{$r['hospreason']}</td></tr>"; } print "</table>"; $h->endpage();   Can't seem to figure out whats wrong, any suggestions please?
  18. Thanks guys, Guest your SQL works (win!). But when I add your code I get this: Parse error: syntax error, unexpected T_VARIABLE in /home/chaosc52/public_html/new/donator1.php on line 8 And I get the same error when I use your second code Kyle. Thanks anyway!
  19. Thanks but still an error: Parse error: syntax error, unexpected T_IF in /home/chaosc52/public_html/new/donator1.php on line 8   <?php include "globals.php"; print " <h3>Donations</h3> <strong>[<a href='willpotion.php'>Buy Will Potions</a>]</strong> If you become a donator to ". $set['game_name'] ." you will receive (each time you donate):"; ** if($db->num_rows($db->query("SELECT id FROM packages")) < 1) ****echo "Sorry, but there are currently no packages in the game yet."; else ****$q=$db->query("SELECT * FROM packages WHERE deleted!='1' ORDER BY cost ASC"); ****while($r=$db->fetch_row($q)) ********echo "<fieldset><legend>$r['name'] (".money_formatter($r['cost'])."--)</legend><ul>"; ********if($r['money'] > 0) echo "<li>".money_formatter($r['money'])." game money.</li>"; ********if($r['crystals'] > 0) echo "<li>".number_format($r['crystals'])." crystals</li>."; ********if($r['iq'] > 0) echo "<li>".number_format($r['iq'])." IQ, the hardest stat in the game to get.</li>"; ********if($r['ddays'] > 0) echo "<li>".number_format($r['ddays'])." days Donator Status: Red name + cross next to your name.</li>"; ***** ********echo "<li>17% Energy every 5 minutes instead of 8%. (For aslong as you have Donator Status)<li>Access to Friends and Black lists</li></ul>"; ********** ********echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'; ********echo '<input type=hidden name=cmd value=_xclick>'; ********echo '<input type="hidden" name="business" value="'.$set['paypal'].'">'; ********echo '<input type="hidden" name="item_name" value="'.$domain.'|DP|'.$r[id].'|'.$userid.'">'; ********echo '<input type="hidden" name="amount" value="'.$r['cost'].'.00">'; ********echo '<input type="hidden" name="no_shipping" value="1">'; ********echo '<input type="hidden" name="return" value="http://'.$domain.'/donatordone.php?action=done&type=standard">'; ********echo '<input type="hidden" name="cancel_return" value="http://'.$domain.'/donatordone.php?action=cancel">'; ********echo '<input type="hidden" name="notify_url" value="http://'.$domain.'/ipn_donator.php">'; ********echo '<input type="hidden" name="cn" value="Your Player ID">'; ********echo '<input type="hidden" name="currency_code" value="USD">'; ********echo '<input type="hidden" name="tax" value="0">'; ********echo '<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">'; ********echo '</form>'; ********** ********echo "</fieldset>"; ****endwhile; endif; $h->endpage();   I think the issue relies here:   if($db->num_rows($db->query("SELECT id FROM packages")) < 1) ****echo "Sorry, but there are currently no packages in the game yet.";   Maybe an alternative statement that carries out the same function might work?
  20. Thanks man! Appreciated :)
  21. Same error :( Thanks for trying Kyle
  22. Hmmm...On the Donator.php I get this error: Parse error: syntax error, unexpected T_IF in /home/chaosc52/public_html/new/donator1.php on line 11 Using this code:   <?php include "globals.php"; print <<<EOF <h3>Donations</h3> <b>[<a href=willpotion.php>Buy Will Potions</a>]</b> * If you become a <span class="highlight">donator</span> to {$set['game_name']}, you will receive (each time you donate): * EOF; * if($db->num_rows($db->query("SELECT id FROM packages")) < 1): ****echo "Sorry, but there are currently no packages in the game yet."; else: ****$q=$db->query("SELECT * FROM packages WHERE deleted!='1' ORDER BY cost ASC"); ****while($r=$db->fetch_row($q)): ********echo "<fieldset><legend>$r[name] (\$$r[cost],--)</legend><ul>"; ********if($r[money] > 0) echo "[*]\$".number_format($r[money])." game money."; ********if($r[crystals] > 0) echo "[*]$r[crystals] crystals."; ********if($r[iq] > 0) echo "[*]$r[iq] IQ, the hardest stat in the game to get."; ********if($r[ddays] > 0) echo "[*]$r[ddays] days <span class="highlight">Donator</span> Status: Red name + cross next to your name."; ********* ********* ********echo "[*]17% Energy every 5 minutes instead of 8%. (For aslong as you have <span class="highlight">Donator</span> Status)[*]Access to Friends and Black lists[/list]"; ********* ********echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'; ********echo '<input type=hidden name=cmd value=_xclick>'; ********echo '<input type="hidden" name="business" value="'.$set[paypal].'">'; ********echo '<input type="hidden" name="item_name" value="'.$domain.'|DP|'.$r[id].'|'.$userid.'">'; ********echo '<input type="hidden" name="amount" value="'.$r[cost].'.00">'; ********echo '<input type="hidden" name="no_shipping" value="1">'; ********echo '<input type="hidden" name="return" value="http://'.$domain.'/donatordone.php?action=done&type=standard">'; ********echo '<input type="hidden" name="cancel_return" value="http://'.$domain.'/donatordone.php?action=cancel">'; ********echo '<input type="hidden" name="notify_url" value="http://'.$domain.'/ipn_donator.php">'; ********echo '<input type="hidden" name="cn" value="Your Player ID">'; ********echo '<input type="hidden" name="currency_code" value="USD">'; ********echo '<input type="hidden" name="tax" value="0">'; ********echo '<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">'; ********echo '</form>'; ********* ********echo "</fieldset>"; ****endwhile; endif; $h->endpage();   I tried playing around with it earlier to no avail... Any ideas? :/
  23. Thanks Kyle! SQL working! :D
  24. Yeah the ** adds itself, as the forums mess up the code :) And I get this error now: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* DEFAULT CHARSET=latin1 AUTO_INCREMENT=1' at line 11
  25. CREATE TABLE IF NOT EXISTS `packages` ( **`id` int(11) NOT NULL AUTO_INCREMENT, **`money` int(11) NOT NULL, **`crystals` int(11) NOT NULL, **`iq` int(11) NOT NULL, **`ddays` int(11) NOT NULL, **`name` varchar(32) NOT NULL, **`cost` int(11) NOT NULL, **`deleted` int(1) NOT NULL, **PRIMARY KEY (`id`) ) ENGINE=MyISAM* DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;   With the SQL above, I get this error on PHPMyAdmin: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`money` int(11) NOT NULL, Â Â `crystals` int(11) NOT NULL, Â Â `iq` int(11) NO' at line 2 Anyone know the issue(s)? Thanks!
×
×
  • Create New...