Jump to content
MakeWebGames

gurpreet

Members
  • Posts

    834
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gurpreet

  1. gurpreet

    Active or not

    I have the following in a seperate test file:   <?php include "config.php"; include "globals.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; if(time() - $ir['laston'] < 259200) { $db->query("UPDATE users set active = 1 where userid = {$ir['userid']}"); } else {} if($ir['active'] == 1 && $ir['donatordays'] > 0) { $db->query("UPDATE users SET activepoints = activepoints + 2 where userid = {$ir['userid']}"); } else if($ir['active'] == 1) { $db->query("UPDATE users SET activepoints = activepoints + 1 where userid = {$ir['userid']}"); } $points = abs(@intval($_GET['activepoints'])); print "You have $points points."; ?>   1) print nor echo outputs the text. 2) The activepoints don't update even though a few people have active=1
  2. gurpreet

    Active or not

    if(time() - $ir['laston'] < 259200) { $db->query("UPDATE users set active = 1 where userid = $r['userid']"); } else {} if($r['active'] == 1 && $r['donatordays'] > 0) { $db->query("UPDATE users SET activepoints = activepoints + 2 where userid = $r['userid']"); } else if($r['active'] == 1) { $db->query("UPDATE users SET activepoints = activepoints + 1 where userid = $r['userid']"); } So like that? Or would it be $ir?
  3. gurpreet

    Active or not

    I was trying to create a small mod that rewards the players if they are active and a seperate if they are donator. Something like this $active = unix_timestamp - 259200; maybe something like if($active == 1) { $db->query("UPDATE users set active = 1 where userid = $r['userid']"); } else { }   if($r['active'] == 1 && $r['donatordays'] > 0) { $db->query("UPDATE users SET activepoints = activepoints + 2 where userid = $r['userid']"); } else if($r['active'] == 1) { $db->query("UPDATE users SET activepoints = activepoints + 1 where userid = $r['userid']"); } I was thinking of how to get the active to like check if the player has been on inthe last 3 days. If they have then give them the stuff.
  4. Thanks :) I have done the card and heres the finished product: I may add more info later, the gaps are so the data can expand without going off the sig. When posted, I have shown users how to add tags
  5. Ok lithium, I added the above to the header.php. What do I add in to the encyclopedia.php?
  6. Sorry if this sounds stupid, but I can't get it to work Djkanna. Here's the part in my header:   <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> ..... In the encyclopedia.php i have: {$p['itmname']} I'm not good with the JS stuff, so how would I interlink them?
  7. Neither can I. The actual encyclopedia 5/5, however I cannot get the popup thing to work.
  8. Would it be the same for V2?
  9. Ok I can't seem to get this working. I put the first (CSS) bit right under body { and the rest just above the endpage function. This doesn't work as it expects a function, but then I add it after endpage and it doesn't come as a bar, just a list thing.
  10. Great idea! Like Jordan said take your time, hope it's very good.
  11. Maybe accept 1 game from each genre? Like 1 mob, 1 crime, 1 space etc.
  12. If you forget your password and you used an encrypter, go to google and just paste in the MD5 hash. Sometimes it will come up with the decrypted version :)
  13. model 1887 80 - 2 KD...SNM
  14. LOL some people on JM think that it's better than Deadly Country...Thats just hilarious.
  15. WooP, I got mentioned again! :D Thanks for the compliment :) Well your nothing like them. They just sit around spamming games and stuff, while your here helping everyone with theirs, while making a proper game yourself. Just had a funny talk with Da saint on msn, kept saying "suck ur mum" and stuff like that. Little kids on a hype i guess
  16. This is mainly for the owner of Convicted-City. http://www.judgementmafia.ej.am/login.php Decio and 'Da Saint' have stole most of the stuff from Convicted-City and they really are stupid as they left the name and stuff on the login page. This is mainly just to inform the owner of CC that they've stolen the stuff. Any comments about Decio and 'Da saint' please post here. Personally I think they are sad little pieces of shit, even said their game is better than any of the 'shit' games on here. I disagree 100% because I've seen games like Crimgame and Deadly Country.
  17. This just inserted about 200,000 id 0's
  18. Ok so I need to put in some IDS into my 'free_ids' table. I found the mod on CE but it only started from the 2000's and I have about 500 or so under 2000 that are missing. I really need help with this because I don't want to sit there typing "insert into free_ids values 5" then 6 then 7 etc. BTW There are stuff like 20-30, 36-67, 89-199 so I need a way to do that. Just something like in excel it's D6:D10 Screenshot added.
  19. Does that even work in php? > Yes
  20. How about a proper working awards mod? Searched all around and can't find a proper working one that has a few files etc. Would be nice to see ;) - Auto credit if possible with a list of achieved awards.
  21. Sorry, should work now.
  22. Not sure how or who did it, but someone managed to delete my files, wipe the sql DB and redirect to meatspin. They didn't login to the Cpanel though :S
  23. Make a table in PHPmyadmin, then in the inventory or wherever you want replace the imgname with imgpic.
  24. • Name of the game - Death-Wars • URL of the game - http://www.death-wars.com • Meaningful description of the game - Online RPG, Mccodes... • Theme of the game - War/Crime • Registration Info (forced or demo account available) - Username and pass demo • Statistics (number of registered users, avg online, etc) - Around 2000 registered
×
×
  • Create New...