Jump to content
MakeWebGames

Jordan Palmer

Members
  • Posts

    1,660
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jordan Palmer

  1. Looking good mate :) Thank's for sharing
  2. Hmm.. I guess we'll have to think off idea's along these line's then :)
  3. Well you know I hate sprinf(); lol
  4. Change whatever to whatever, I've simply copied from a forum I know off where this is and secured the output :) I've got my own advanced and custom version off comments ;]
  5. [mysql]CREATE TABLE `ucomments` ( `id` int(11) NOT NULL auto_increment, `time` int(11) NOT NULL default '0', `userfrom` int(11) NOT NULL default '0', `userto` int(11) NOT NULL default '0', `message` text NOT NULL, `reported` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM ;[/mysql] Open viewuser.php and find (This is if you are using the standard Mccodes V2 viewuser.php) <?php #REMOVE //User Comments Start print "<tr><th colspan=3>User Comments - [url='comments.php?userid={$r[']Add a comment[/url]</th></tr><tr><td colspan=3><table width=100% border=0 cellpadding=0 cellspacing=1 class=’table’><tr><th>Time</th><th>By</th><th>Comment</th></tr>"; $sql = sprintf("SELECT * FROM ucomments WHERE userto=".$r['userid']." ORDER BY time DESC"); $q = mysql_query($sql); if(!mysql_num_rows($q)) { print "<tr><td colspan=3 align=’center’ style=’padding-top: 7px; padding-bottom: 7px;’>No comments for this user</td></tr>"; } else { while($y=mysql_fetch_array($q)) { $sql = sprintf("SELECT * FROM users WHERE userid=".$y['userfrom']); $g = mysql_query($sql); if(!mysql_num_rows($q)) { print ""; } $g = mysql_fetch_array($g); print "<tr><td width=30%>".date(’F j, Y g:i:s a’,$y['time'])."</td><td width=20%><a href=’viewuser.php?u={$g['userid']}’>".stripslashes($g['username'])."</a> [".number_format($g['userid'])."]</td><td>".htmlspecialchars($y['message'])."</td></tr>"; } } print "</td></tr></table>"; ?> #REMOVE   Then add comments.php =]
  6. I've not had a good luck but I'd say queries are missing -_-
  7. Danny696 is selling a better version for $5 mate :)
  8. @Immortal; It's not your job to do that :) and I thought you was quitting? lol
  9. Hmm...I may have a go at this...
  10. Thank's guys :D /me spanks MDshare :whistling:
  11. No Problem :)
  12. echo "<a href='streets.php>Back</a>"; Under wherever ya want it
  13. Hey all. Well I've been thinking hard about what MD said about sick off scammers and I think should/could take some off these scammers :D There is a new board under ''General'' Called ''Blacklisted'' users Here users can write about users which have been known to scam/ripp me off, They can supply screenshots and This will potentially help keep new comers to the web development industry safe, Which will help them stay around which will keep this forum growing at a faster rate AND bring in more post's and crap a day, It'll also take out those scammers and so which are known to those who have been around for a while Here's an example off what I had in mind -------------------------------------------------------------------------------- Makewebgames > General > Black Listed users > Mdshare Nickname; MDShare IM; [email protected] How he scammed you; He said he'd sell me http://makewebgames.io then he sold me www.criminalexistence.com, Then he said he'd sercure my game and all he did was put some shit in header and charged me $150 Date; 29TH February 2010 Site Link; www.example.com Screenshots; Screenshot of MSN convosation - ect. When you contacted him/her what did he/she say? [20:00]Mdshare says: you got scammed bitch =) Other info; I've attached a convo log from MSN.. Your advice to others; If he ask's you to buy http://makewebgames.io you shouldn't blah blah I think this is a good idea, I maybe haven't explained it right but meh you know what I'm getting at.. Whatcha think? Or maybe you got a suggestion like this? come on guys help :D
  14. All I can say if have a play with the code, And once I can get time I'll find my way to fixing it :)
  15. I never looked at that >,< I'll take a look once I get a chance, Could be a number of things. I'll see what I can do though bud :)
  16. Thanks, I'll post Screenies when I can be bothered @Magictallguy; Thanks, I suppose I could off done that, But hell I don't see an major issue with the size but thanks anyway
  17. Hey all. Well I got bored and fancied coding something or atleast updating something for free =) About this mod: A few month's ago ''Ishmell'' made this, However he did alot of things wrong and well the mod was good but it did suck, So I decided I'd recode it to what I want it and change a few things and add a few things. Make things more interesting ;). It's not the best but it's free, And if you ask me It's pretty good :D & It don't use die(); so you're footer will show :D All the code should run pretty fast, However I'm not speed optimizer so I could off used some slow functions. What I've done; Its now one big file Each picture is totally random outcome Now users can go to jail & hospital It now will say the actual city name (You got arrested for being at New York) Updated alot of the code Changed a few queries :D Thanks Too; Magictallguy - Helped me figure out I'd defined $hb instead off $db - LOL Ishmell - For Creating the modification :D [align=center]This is a tested modification and it's working without any issue's [align=left]Run this query; [/align][align=left][mysql]ALTER TABLE `users` ADD `turns` INT( 11 ) NOT NULL DEFAULT '25'; [/mysql] Add in cron_day.php; [mysql]$db->query("UPDATE users SET turns=25"); [/mysql]   [/align][align=left] <?php /*----------------------------------------------------- - MCCodes V2 || Streets - Revamped by Jordan ('Pudda') - Freebie :D -----------------------------------------------------*/ $noturns="Sorry you dont see to have any walks left today. Come back tomorrow"; include(DIRNAME(__FILE__) . '/globals.php'); if($ir['turns'] <= 0) { echo $noturns; $h->endpage(); exit; } $_GET['act'] = isset($_GET['act']) && is_string($_GET['act']) ? trim($_GET['act']) : ""; switch($_GET['act']) { case 'search': search_streets(); break; default: index(); break; } function index() { global $db,$ir,$userid,$h; $LOC1 = mysql_query("SELECT cityid, cityname FROM cities WHERE cityid = ".$ir['location']) or die(mysql_error()); $LOC = mysql_fetch_assoc($LOC1); $Type=mt_rand('1', '8'); echo "<h2><center>".$LOC['cityname']." Streets</center></h2>"; Print "[img=http://i42.tinypic.com/2h6cd41.jpg] <map name='Map'> <area shape='rect' coords='205,274,270,339' href='?act=search&search=".$Type."'> <area shape='rect' coords='273,3,338,68' href='?act=search&search=".$Type."'> <area shape='rect' coords='138,138,203,203' href='?act=search&search=".$Type."'> <area shape='rect' coords='274,138,339,203' href='?act=search&search=".$Type."'> <area shape='rect' coords='204,137,269,202' href='?act=search&search=".$Type."'> <area shape='rect' coords='2,138,67,203' href='?act=search&search=".$Type."'> <area shape='rect' coords='3,69,68,134' href='?act=search&search=".$Type."'> <area shape='rect' coords='273,207,338,272' href='?act=search&search=".$Type."'> <area shape='rect' coords='275,70,340,135' href='?act=search&search=".$Type."'> <area shape='rect' coords='205,70,270,135' href='?act=search&search=".$Type."'> <area shape='rect' coords='2,274,67,339' href='?act=search&search=".$Type."'> <area shape='rect' coords='69,274,134,339' href='?act=search&search=".$Type."'> <area shape='rect' coords='340,342,405,407' href='?act=search&search=".$Type."'> <area shape='rect' coords='341,409,406,474' href='?act=search&search=".$Type."'> <area shape='rect' coords='273,410,338,475' href='?act=search&search=".$Type."'> <area shape='rect' coords='206,410,271,475' href='?act=search&search=".$Type."'> <area shape='rect' coords='138,410,203,475'href='?act=search&search=".$Type."'> <area shape='rect' coords='70,408,135,473' href='?act=search&search=".$Type."'> <area shape='rect' coords='3,407,68,472' href='?act=search&search=".$Type."'> <area shape='rect' coords='3,341,68,406' href='?act=search&search=".$Type."'> <area shape='rect' coords='138,342,203,407' href='?act=search&search=".$Type."'><area shape='rect' coords='68,341,133,406' href='?act=search&search=".$Type."'> <area shape='rect' coords='206,342,271,407' href='?act=search&search=".$Type."'><area shape='rect' coords='274,342,339,407' href='?act=search&search=".$Type."'> <area shape='rect' coords='272,272,337,337' href='?act=search&search=".$Type."'> </map> </center>"; } function search_streets() { global $db,$ir,$userid,$h; $LOC1 = mysql_query("SELECT cityid, cityname FROM cities WHERE cityid = ".$ir['location']) or die(mysql_error()); $LOC = mysql_fetch_assoc($LOC1); /*----------------------------------------------------- # Start Config # -----------------------------------------------------*/ $nonrecorded="What you doing here? [url='index.php']Go back[/url]"; $rand= rand(0,2); $randhard= rand(0,3); $randmoney= rand(1,100); $randcrystals= rand(1,8); $itemidsearch2= 39; //Item id for search 2 $quantitysearch2= 1; //Item quantity for search 2 $itemidsearch4= 36; //Item id for search 4 $quantitysearch4= 1; //Item quantity for search 4 $itemidsearch5= 37; //Item id for search 5 $quantitysearch5= 1; //Item quantity for search 5 $itemidsearch7= 38; //Item id for search 7 $quantitysearch7= 1; //Item quantity for search 7 $itemidsearch8= 36; //Item id for search 8 $quantitysearch8= 1; //Item quantity for search 8 /*----------------------------------------------------- # End Config # -----------------------------------------------------*/ $_GET['search'] ===abs(@intval($_GET['search'])); if(!$_GET['search']) { echo $nonrecorded; $h->endpage(); exit; } else if($_GET['search'] == '1') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($rand == '1') { $db->query("UPDATE `users` SET `money`=`money`+".$randmoney." WHERE `userid`=$userid") or die(mysql_error()); echo "<font color='green'>[b]Sucess[/b]</font> You found ".money_formatter($randmoney)." After searching an random box"; } else { echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." You didnt come across anything useful "; } $h->endpage(); exit; } else if($_GET['search'] == '2') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($rand == '1') { $db->query("INSERT INTO `inventory` VALUES('',$itemidsearch2,$userid,$quantitysearch2)") or die(mysql_error()); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You found an mysterious item. Go to your inventory to find out what"; } else { $Time = mt_rand('20', '100'); echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." a police officer arrested you."; $db->query(sprintf("UPDATE `users` SET `jail`='%u', `jail_reason`='Arrested for hanging around %s' WHERE `userid`='%u'", $Time, $LOC['cityname'], $userid)) or die(mysql_error()); } $h->endpage(); exit; } else if($_GET['search'] == '3') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($rand == '1') { $db->query("UPDATE `users` SET `money`=`money`+".$randmoney." WHERE `userid`=$userid") or die(mysql_error()); echo "<font color='green'>[b]Sucess[/b]</font> You found ".money_formatter($randmoney)." After robbing an random old man"; } else { $Time = mt_rand('20', '100'); echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." you got shot."; $db->query(sprintf("UPDATE `users` SET `hospital`='%u', `hospreason`='While searching %s they got shot' WHERE `userid`='%u'", $Time, $LOC['cityname'], $userid)) or die(mysql_error()); } $h->endpage(); exit; } else if($_GET['search'] == '4') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($randhard == '1') { $db->query("INSERT INTO inventory VALUES('',$itemidsearch4,$userid,$quantitysearch4)"); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You found an mysterious item. Go to your inventory to find out what"; } else { echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." you found NOTHING!"; } $h->endpage(); exit; } else if($_GET['search'] == '5') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); $db->query("INSERT INTO inventory VALUES('',$itemidsearch5,$userid,$quantitysearch5)"); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You found an mysterious item. Go to your inventory to find out what"; $h->endpage(); exit; } else if($_GET['search'] == '6') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($rand == '1') { $db->query("UPDATE users SET `crystals`=`crystals`+".$randcrystals." WHERE userid=$userid"); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You fell down a hole and found ".number_format($randcrystals).""; } else { $Time = mt_rand('20', '100'); echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." a police officer arrested you."; $db->query(sprintf("UPDATE `users` SET `jail`='%u', `jail_reason`='Arrested for hanging around %s' WHERE `userid`='%u'", $Time, $LOC['cityname'], $userid)) or die(mysql_error()); } $h->endpage(); exit; } else if($_GET['search'] == '7') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($rand == '1') { $db->query("INSERT INTO inventory VALUES('',$itemidsearch7,$userid,$quantitysearch7)"); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You found an mysterious item. Go to your inventory to find out what"; } else { $Time = mt_rand('20', '100'); echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." a police officer arrested you."; $db->query(sprintf("UPDATE `users` SET `jail`='%u', `jail_reason`='Arrested for hanging around %s' WHERE `userid`='%u'", $Time, $LOC['cityname'], $userid)) or die(mysql_error()); } $h->endpage(); exit; } else if($_GET['search'] == '8') { $db->query("UPDATE `users` SET `turns`=`turns`-1 WHERE `userid`=$userid") or die(mysql_error()); if ($randhard == '1') { $db->query("INSERT INTO inventory VALUES('',$itemidsearch8,$userid,$quantitysearch8)"); echo "<font color='green'>[b]Success[/b]</font> While searching ".$LOC['cityname']." You found an mysterious item. Go to your inventory to find out what"; } else { $Time = mt_rand('20', '100'); echo "<font color='red>[b]Unlucky![/b]</font> While searching ".$LOC['cityname']." a police officer arrested you."; $db->query(sprintf("UPDATE `users` SET `jail`='%u', `jail_reason`='Arrested for hanging around %s' WHERE `userid`='%u'", $Time, $LOC['cityname'], $userid)) or die(mysql_error()); } $h->endpage(); exit; } } $h->endpage(); ?> [/align][/align]
  18. New PSD look's good. War Type of game's aren't that popular really so good choice =)
  19. I'll PM you once my ''project'' is closer $400 isn't too big off a price :)
  20. I have no idea, You're better off telling me a price range
  21. Hmm, What kinda price you want?
  22. I'm not too sure right now. What engine does it run off?
  23. This actually look's rather nice...I was after doing a new game based on soldiers, I may actually purchase this project off you once my latest one is finished, Would you be interested in selling?
  24. It might be, But it wont learn you as much lol. I guess we all have preferences
  25. I'd never heard off that website before, I'll bookmark and take a look too Good work & Thank you :)
×
×
  • Create New...