Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,138
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Djkanna

  1. Unknown whether this mod has been updated since it's original release but this should be a working SQL for you. CREATE TABLE IF NOT EXISTS `chat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `msg` text NOT NULL, `time` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; ^Taken from page two/with the removal of the second AUTO_INCREMENT.
  2. My 'Octarine score': Thanks for the test Octarine, it's useful to test one's skills every once in a while. :)
  3. Firstly, A_bertrand isn't English, and it's not his native language, what may seem to be cocky or even demeaning to you, doesn't imply Alain mean't to convey it that way. Secondly, if you have a problem with a staff member, you should take it up with the owners/another admin or even the person you have a problem with in PM not in forums. Thirdly, even if you have a phone number/email/msn/skype/IM of some kind, doesn't make that person available to you 24/7, wait. P.S. Take some of your own advice. ;)
  4. Oh fair enough, this I did not know.
  5. "Possible exploit detected; please contact MWG forums" -- Looks like MCCodes should be contacting you.
  6. @Alain: Generally speaking, updating is much easier than from scratch, and from track record, I doubt anything drastic will happen in v3, as they still have to stick to the 'ease of use' this term applies to it's developer community in creating addons for it as well as general users, not mention I am sure they are thinking about the majority of the mods on this site are for MCCv2, so if they don't have something that either works with those mods, or isn't so difficult to update those mods to work, what a waste of the past what 4/5 years of mods available. @Chicka, note my post hinges on "if they do get their act together". MCCodes have a name for themselves, relatively speaking 90% of new members come from popular MCCodes games out there, they hear that their favorite game uses MCCodes as a base, and want a game, MCCodes seems to be the obvious path for them to take, but like you said research should be done.
  7. Yes I think people will buy V3. After all, it has a bad reputation but at the same time it has a reputation of being an easy to set up 'game', not to mention we as a community have provided countless modifications (I doubt this will cease with v3) and support for past engines, that it is very easy to see why one would go for MCCodes over a relatively new (I'm guessing Alains engine will be new when v3 comes out but who knows) engine, that has very little in terms of modules (again with the new). However those with experience in dealing with MCCodes and it's "Team", may choose Alain's engine over MCCodes, someone that does not know of it's past or has not dealt with them may not. Now if they do get their act together, and someone new comes along, which engine would you go for, one that has an established community and pages of addons freely available, or one that while may be the better of the two doesn't have either just yet? Think about it.
  8. SELECT LEFT (`ann_TEXT`, 20) AS `selection` .....
  9. Happy New Year, MakeWebGames community, have a good 2012.
  10. $getUsers = $db->query('SELECT `userid` FROM `users` WHERE (`cybermoneyba` > 0) '); if ($db->num_rows($getUsers) > 0) { $interest = 1; while ($users = $db->fetch_row($getUsers)) { $checkItem = $db->query('SELECT `inv_id` FROM `inventory` WHERE (`inv_userid` = '.$users['userid'].' && `inv_itemid` = 622) LIMIT 1'); if ($db->num_rows($checkItem) > 0) { $interest = 4; } $db->query('UPDATE `users` SET `cybermoneyba` = `cybermoneyba` + ((`cybermoneyba`/100)*'.$interest.') WHERE (`userid` = '.$users['userid'].')'); } } Maybe?
  11. Well that's not going to work, you'll end up with several nested div elements and no closing divs. Generally speaking an ID should only appear once within a page, this is why you'll only modify the first element with the id and not the rest of the elements with the ID. As far as I am aware (someone may be able to confirm/correct this) things like getElementById(); (which I believe you'd be using somewhere within your js) will only return the first it finds.
  12. Pretty sure you shouldn't imply you created something you did not. http://m.cmcdn.net/14542973/780x1072.png (on your portfolio) http://365psd.com/wp-content/uploads/2011/01/vcard1.jpg (created by Chris Wallace) On a similar note: http://m.cmcdn.net/14574675/550x100.png (on your portfolio) http://designmoo.com/5272/ribbons-new-and-worn/ (created by some member of DesignMoo (ironically co-founded by Chris Wallace). Now I am aware that 365PSD (where I found the first one) allows for commercial use, as for DesignMoo I believe it's on a per-user basis. Either way you shouldn't imply you created them (note the first is watermarked with "jhgdesign" I assume and a seperate entry in the portfolio piece) and the second is also a seperate (well multiple with just the text changed) entries in the portfolio piece. If you want to be really kind at least mention it, as if someone see's these (clearly not by you) then they'll wonder about the rest of the content in your portfolio. Note: Not questioning your credibilty nor your talent as a designer here, just stating a tip.
  13. Hate to be the one that's not very helpful, but the short answer is; The same way you do on any other time.
  14. She's hot there...:cool:
  15. Yep standard Win7 setup, though I've used RocketDock in the past (and the one that makes everything look as if it was a Mac (no idea why I used it but I did)) but in the end always revert back to the standard, it grows on you I guess. :P I now use Dexpot that allows me to switch between multiple instances of my Desktop (good for having development/social seperate and being able to switch back and forth) EDIT: lol...
  16. Just for you, I cleaned up my desktop(somewhat). Generally I have crap everywhere. I also slapped on Lady Gaga showing her ass (usually just use a plain grayish gradient background). ;) Yeah I couldn't work with multiple screens, I get distracted enough with just the one... [ATTACH=CONFIG]233[/ATTACH]
  17. Awesome! Best of luck, Fazothy.
  18. Merry Christmas, Danger Boy. Hope you had a good day.
  19. I am sure there is some posts on countdown times on this board, that should fit your needs with a little tweaking.
  20. Surprisingly I couldn't be bothered signing up.
  21. Merry Christmas all.
  22. Firebug? Perhaps.
  23. Great news. This is something that has been requested over and over again, a well documented, extendable and quality engine. I've had the chance to look at the current draft of the skeleton/base of this engine, and I must say it already is well documented and seemingly very easy to work with. I am happy to contribute to the code where I can, and I wish you the best of luck. This module store is equally a good idea, and in my opinion is much better than taking the forum route, as this way it ensures that the modules that are created have been well tested, well documented and work before ever reaching the marketplace.
  24. <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Nerf Warrriors</title> <style type="text/css"> body { background-image: url(Images/bg.jpg); } #wrap { background-color: #dfdac6; width:800px; margin-left:auto; margin-right:auto; border-style: solid; border-width: 1px; border-color:#eeeeee; } #top { background-image: url(Images_Ingame/headerbg.jpg); background-repeat:no-repeat; width: auto; height:100px; } #bar { background-image: url(Images_Ingame/menubg.jpg); font-family: arial; font-size: 11px; margin-top: auto; width:100%; height: 57px; } .menulinks { list-style-type:none; margin:auto; } .menulinks li { display:inline-block; margin-left:5px; margin-top:12px; } #nav { float:left; height:600px; width:250px; background-image: url('Images_Ingame/navbg.jpg'); background-repeat:-y; padding-right:40px; padding-top:15px; } #content { height:615px; text-align:center; width:auto; background-image: url('Images_Ingame/contentbg.jpg'); background-repeat:-x; margin-left:250px; } .nav2 { list-style-type:none; margin:0px; } .nav2 li { display:block; background-image:url('Images_Ingame/link.jpg'); width:210px; height:20px; padding:3px; text-align:center; } a:link { color:#000; text-decoration:none; } a:hover { text-decoration:underline; } a:visited { color:#000; text-decoration:none; } img { border:none; } .info { padding-left:5px; } #footer { clear:both; background-image: url('Images/footer.jpg'); height:40px; padding-top:5px; padding-right:15px; text-align:right; } </style> </head> <body> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = $db->escape($_SERVER['REMOTE_ADDR']); $db->query("UPDATE `users` SET `laston` = ".$_SERVER['REQUEST_TIME'].",`lastip` = '$IP' WHERE `userid` = $userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { echo "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>"; $d="<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } $gn=""; global $staffpage; print <<<OUT <div id="wrap"> <div id="top"></div> <div id="bar"> <ul class='menulinks'> <li><a href='#'><img src='Images_Ingame/homepage.jpg'></a></li> <li><a href='#'><img src='Images_Ingame/messages.jpg'></a></li> <li><a href='#'><img src='Images_Ingame/usersonline.jpg'></a></li> <li><a href='#'><img src='Images_Ingame/vote.jpg'></a></li> <li><a href='#'><img src='Images_Ingame/donate.jpg'></a></li> </ul> </div> <div id="nav"> <ul class="nav2"> <b>Name:</b> $gn{$u} [{$ir['userid']}] $d <b>Money:</b> {$fm} <b>Level:</b> {$ir['level']} <b>Points:</b> {$ir['points']} OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("<b><font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font></b></body></html>"); } if(file_exists('ipbans/'.$IP)) { die("<b><font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font></b></body></html>"); } } function menuarea() { define('jdsf45tji', true, true); include 'mainmenu.php'; global $ir,$c; echo '</div><div id="content">'; } function smenuarea() { define('jdsf45tji', true, true); include 'smenu.php'; global $ir,$c; echo '</div><div id="content">'; } function endpage() { global $db; print <<<OUT </div><!--/#content--> <div id="footer">Copyright stuff</div> </div> </body> </html> OUT; } } ?> Fixed height is not a wise choice, just saying.
  25. Never been a fan of using ajax this way, it does provide some usability issues(as SRB stated back/forward buttons). Forms (for error feedback), maybe checking for new notifications to provide to the user, chat systems are all good uses of Ajax, but I don't think full site no page refreshes is good, I think you could get away with using ajax to have your landing page switch between pages like story or about, or even login and signup (well I hope you can anyway), but in-game don't see much use.
×
×
  • Create New...