Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,138
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Djkanna

  1. Is there a demo to this? Or have I just skimmed past the link?
  2. Well there is triggers so it is possible.
  3. And the search bar is a little messed up, or at least it is on my screen. Screen: http://prntscr.com/1ygvh
  4. Try the allowtransparency tag. And/or specifically set the background to transparent.
  5. Djkanna

    What's new?

    Welcome back LostOne, Dominion pretty much covered the story. :P
  6. Surely Sniko is willing to accept 'Donations' for his hard work into this modification, if a user feels like contributing to the development. End of the day, it is Sniko's choice to provide it as a free modification or a paid for one.
  7. Which ever you feel comfortable with. For a CMS I believe OOP will have an advantage, combined with an MVC pattern, however for a small, lightweight CMS procedural will do fine.
  8. He is I believe, or at least should be. Urban mafia, consider looking into the service MWG provides, for the verification, that this mod does what it says on the tin.
  9. Good starting guide, well done! :)
  10. The error is in the text, you cannot use zero in a division. Try printing out both $ir['energy'] and $ir['maxenergy'] see what you get. Note to others: It's in the header.php, within the userdata function, there is no need to global $ir (obviously unless the op has changed something :D)
  11. Djkanna

    Funny RFC

    Hehe I liked that, especially the Pig part...
  12. Sounds interesting, yet I'll wait for the demo. Best of luck with sales.
  13. Hmm, Forelawn seems interesting.
  14. Not bad, best of luck with it. :)
  15. Turn on ASP/Short tags under PHP -> PHP Settings
  16. Hey, just like to wish Karlos a happy 17th birthday. Hope you have a good time pal. -DJK
  17. It's clear this person should be avoided in terms of transactions, let's leave it at that.
  18. Doesn't look to bad, though not really a game I would play.
  19. No problem. :)
  20. Maths isn't my strongest suit, so I am using yours. :D $checkItem = $db->query('SELECT `inv_userid` FROM `inventory` WHERE (`inv_itemid` = 5)'); if ($db->num_rows($checkItem)) { $creditedUsers = array(); //Fix for duplicate inventory items (just in case) while ($user = $db->fetch_row($checkItem)) { if (!in_array ($user['inv_userid'], $creditedUsers)) { $db->query('UPDATE `users` SET `bankmoney` = `bankmoney` + (`bankmoney` / 25) WHERE (`userid` = '.$user['inv_userid'].' && `bankmoney` > 0)'); array_push($creditedUsers, $user['inv_userid']); } } }
  21. I used an ID to get around the problem somewhat also. //Data $_GET['quote'] ( reply ) if ($getReply = $db->prepare ('SELECT `postContent`, `postCreator`, FROM `posts` WHERE (`postID` = ?)') ) { $getReply->bind_param('i', $_GET['quote']); $getReply->execute(); $getReply->store_result(); if ($getReply->num_rows() > 0) { $getReply->bind_result($postContent, $postCreator); $getReply->fetch(); } $getReply->free_result(); $getReply->close(); } $value = ''; if (isset ($postContent) && isset ($postCreator)) { $value = '[\quote='.$postCreator.'\]'.$postContent.'[/quote\]'; // \ because it likes to inject the BBCode of this forum into it. } <textarea><?php echo $value; ?></textarea> Something to that effect.
  22. You really do need to provide more information. And no matter what, unless you upgrade to MCCodes V2.03, you won't get you game 'freely' secured.
  23. Line 19 add after it, $cost = array();
  24. So off topic, but why all of a sudden am I picturing 'I am the great Cornholio' skit.
  25. No problem. :)
×
×
  • Create New...