Jump to content
MakeWebGames

DidNotCompute

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by DidNotCompute

  1. I've got some free time, so let me know the concept of what you're after...
  2. Do you have a valid ClassiPress license?
  3. Really? Which major hosting company does not allow crons?
  4. He's using Foundation. [MENTION=70342]wrux[/MENTION] Good luck with the game, looks really cool. :)
  5. FYI, here are some sites that allow incentives (and so send HTTP requests): http://www.top100arena.com http://www.gamingbytes.com http://www.topwebgames.com http://www.mpogr.com http://www.hotrpgames.com http://www.mgpoll.com http://www.hotbrowsergames.net http://www.browsergametoplist.com http://www.browsergamelist.net
  6. Your question isn't very clear? Do you mean players can gain voting rewards (e.g. money or credits) without actually voting? If so, some voting sites offer the option of having HTTP requests sent which you can use to verify that the user has actually voted.
  7. What for? That would be a waste of my time. However, I'm sure anyone else with knowledge of HTML or CSS would say the same as I have. Also, I'm just giving my opinion on your work; others may disagree.
  8. Really? $55 for a few boxes and a generic brick background? :confused: Also, nearly everything there could be created, relatively simply, with CSS and HTML.
  9. What you have described here is registering...
  10. Why are you using INT here? Are the colours assigned to integer values?
  11. For your first error, the query probably failed (for any number of reasons). Division by zero means your dividing by 0 i.e. NULL.
  12. I'm not sure exactly what you're looking for as your post is a little unclear. But give this a go...   $maximum_move_difference = $maximum_moves_for_current_level - $minimum_moves_for_current_level; $your_move_difference = $maximum_moves_for_current_level - $your_moves; $maximum_to_multiply_by = 4; $minimum_to_multiply_by = 1; $each_move_difference_increment = ($maximum_to_multiply_by - $minimum_to_multiply_by) / $maximum_move_difference; $multiply_value = ($your_move_difference*$each_move_difference_increment) + $minimum_to_multiply_by; $award = $minimum_reward_for_current_level*$multiply_value;
  13. I don't get the point of this? If you already own the .com game why don't you just improve that rather than creating the .co.uk one?
  14. Paste all of this into your daily cron file and delete the competition_cron.php file.   if ($set['competition'] == "Active") { if ($set['competition_type'] == "Crimes") { $type = "crimes"; } elseif ($set['competition_type'] == "Jail Busts") { $type = "jail_busts"; } $get_top3 = $db->query("SELECT userid, $type, competition_starting FROM users WHERE competition='1' ORDER BY $type-competition_starting DESC LIMIT 3"); $n = 1; while ($top3 = mysql_fetch_object($get_top3)) { switch ($n) { case 1: $prize = $set['competition_prize_1']; break; case 2: $prize = $set['competition_prize_2']; break; case 3: $prize = $set['competition_prize_3']; break; } $db->query("UPDATE users SET money=money+$prize WHERE userid='$top3->userid'"); $n++; } $db->query("UPDATE users SET competition='0' WHERE competition='1'"); $db->query("UPDATE settings SET conf_value='Inactive' WHERE conf_name='competition'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_type'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_1'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_2'"); $db->query("UPDATE settings SET conf_value='' WHERE conf_name='competition_prize_3'"); }
  15. I can't see why this error is occurring. What I'd suggest you do is add everything from line 22 onwards into your daily cron file.
  16. The only way I can replicate the error is by not defining $db. Hmmm. Have you ever edited the class/class_db_mysql.php file? If so, could you post it?
  17. I've tested both the competition and lottery system and they work fine. The error suggests that $db is not referring to an object. Could you post your config.php file? [MENTION=69014]Greenslip[/MENTION]
  18. You do realise it will only update the first name and last name from your edit_form.php and NOT all the other fields in that form?
  19. Use vertical align.
  20. Don't use cookies alone to log votes because someone can just delete their cookies are repeatedly vote for the same site.
  21. As far as I'm aware one of those is free to use, another 2 are just slightly edited versions of the Way of The Mafia (which itself is free to use) and I'm not sure about the rest. Just seems very dodgy. :confused:
  22. I agree that it would be useful for multiple competitions. :)
  23. Are you sanitising user input?
  24. I just read your post again and I think you may have misinterpreted what "competition_starting" is. It is not when the competition is going to start but what value (e.g. crimes or jail busts) each user starts with; therefore, it is necessary for every user to have.
  25. Fair enough, if you had 5,000 users then yes you may have around 19KB of additional storage; it's not a lot but I understand your point about the need for greater efficiency (even though in this case it is required).   Thank you for your comments.
×
×
  • Create New...