Jump to content
MakeWebGames

WarMad

Members
  • Posts

    218
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by WarMad

  1. Mine was in my junk as well
  2. If someone has this I would like a copy
  3. Wow you do amazing work!!
  4. I just started getting back into the swing of things i do not have internet at my house anymore(will mainly be on here from mobile) but i am somewhat working on a mccodes game on an offline server mainly to make sure i dont forget how to code lol plus something to do in the little bit of free time i do have.
  5. wow i really like the "clean" look it has i will give more input after i play for a bit
  6. First go to viewuser.php and where you add all you links for send a message, attack, etc and add this <a href="interact.php?ID='.$r['userid'].'">Interact</a><br/> Then make the file interact.php and in the file add this <?php include 'globals.php'; $_GET['ID'] = array_key_exists('ID', $_GET) && ctype_digit($_GET['ID']) ? $_GET['ID'] : null; if(!$_GET['ID']) { die('Invalid use of file!'); $h->endpage(); } if($_GET['ID'] == $ir['userid']) { die('Invalid use of file!'); $h->endpage(); } $_GET['action'] = array_key_exists('action', $_GET) && ctype_alnum($_GET['action']) ? trim(strtolower($_GET['action'])) : null; switch($_GET['action']){ case 'punch': punch($db, $ir, $h); break; case 'slap': slap($db, $ir, $h); break; default: interact_index($db, $ir, $h); break; } function interact_index($db, $ir, $h) { $db->query('SELECT username FROM users WHERE userid = '.$_GET['ID']); $row = $db->fetch_row(true); echo '<center>What would you like to do to '.$row['username'].'?<br/><br/> <a href="interact.php?ID='.$_GET['ID'].'&action=punch">[Punch]</a><br/> <a href="interact.php?ID='.$_GET['ID'].'&action=slap">[Slap]</a><br/>'; exit($h->endpage()); } function punch($db, $ir, $h){ $db->query('SELECT userid, username, hospital, jail FROM users WHERE userid = '.$_GET[‘ID’]); if(!$db->num_rows()) { die('That user doesn\'t exist'); $h->endpage(); } $row = $db->fetch_row(true); $target = $row['username']; ) if($ir['hospital'] && !$row['hospital']) { die($target.' isn\'t currently in hospital - and you are'); $h->endpage(); } if(!$ir['hospital'] && $row['hospital']){ die($target.' is currently in hospital - and you\'re not'); $h->endpage(); } if($ir['jail'] && !$row['jail']) { die($target.' isn\'t currently in jail - and you are'); $h->endpage(); } if(!$ir['jail'] && $row['jail']) { die($target.' is currently in jail - and you\'re not'); $h->endpage(); } event_add($row['userid'], 'You\'ve been punched by '.$ir[‘username’].'! Click <a href="interact.php?ID='.$ir['userid'].'">here</a> to punch them back'); echo ‘You\'ve punched '.$target; } function slap($db, $ir, $h){ $db->query('SELECT userid, username, hospital, jail FROM users WHERE userid = '.$_GET[‘ID’]); if(!$db->num_rows()) { die('That user doesn\'t exist'); $h->endpage(); } $row = $db->fetch_row(true); $target = $row['username']; ) if($ir['hospital'] && !$row['hospital']) { die($target.' isn\'t currently in hospital - and you are'); $h->endpage(); } if(!$ir['hospital'] && $row['hospital']){ die($target.' is currently in hospital - and you\'re not'); $h->endpage(); } if($ir['jail'] && !$row['jail']) { die($target.' isn\'t currently in jail - and you are'); $h->endpage(); } if(!$ir['jail'] && $row['jail']) { die($target.' is currently in jail - and you\'re not'); $h->endpage(); } event_add($row['userid'], 'You\'ve been slapped by '.$ir['username’].'! Click <a href="interact.php?ID='.$ir['userid'].'">here</a> to slap them back'); echo 'You have slapped '.$target; } $h->endpage(); And thats it. I have not tested this i made it for a game i used to own and converted it to v2 so sorry a head of time if i forgot anything.
  7. hi im trying to make it were out of any ofthe houses either me or my spouse own we can move into but its not working it just lets us move into any house period weather we own it or not   if(isset($_GET['in'])) { $db->query('SELECT `h`.*, `p`.* FROM `houses` AS `h` LEFT JOIN `properties` AS `p` ON `h`.`hID` = `p`.`pOWNER` WHERE `hID` = ?'); $db->execute([$_GET['in']]); $row = $db->fetch_row(true); if(!$db->fetch_row(true)){ error('That house does not exist!'); } else { if($row['pOWNER'] == !$ir['userid'] || $row['pOWNER'] == !$ir['relationship'] || $ir['married'] == 0){ error('Either you and your spouse do not own that house, It does not exist, Or you guys are not married!'); } if($row['pOWNER'] = $ir['userid'] || $row['pOWNER'] = $ir['relationship'] && $ir['married'] == 1){ $func->success('You have moved into the '.$row['hNAME'].''); $db->query('UPDATE `users` SET `will` = 0, `maxwill` = ? WHERE `userid` = ?'); $db->execute([$row['hWILL'], $ir['userid']]); } } this is the code i have for it
  8. Well I forgot to update but I went on it not to long ago to check it out and the error was gonna (scratches his head) I tried to fix it for month and just poof haha
  9. Ok I will post it asap and no explaining things is not something I'm even a little bit good at haha
  10. I'm trying to select all of my items for a list saying what they all cost and stuff and I it selects them all but it repeats one of the items and it's not in the db more then one time
  11. ok thanks sorry im still teaching myself as i go i know a lot at this point but still sometimes need things explained in a way thats so simple my 6 year old niece would understand thank you :)
  12. to many different things to even list haha i have even taking querys from other things copied it and then pasted it there and edited it so it would get the info i wanted and it still keeps doing it :-|
  13. sorry can you show me an example actually in a query?
  14. im using pdo and for one of the mods im making it keeps repeating results and i have absolutely no idea on how to fix it i have tried everything i know
  15. all i need to know is how to update a couple things by percent i need how to do + 5% +10% +3% +25% i do not know how to do percents at all and have been working on something for a while but im stuck because of that
  16. thanks i will give that a try when i get a chance
  17. thanks :p feel kinda slow for not knowing that haha i have been doing a lot and still couldnt do that i guess i should have tried a little harder
  18. ya i understand haha
  19. WarMad

    Script

    just a heads up adam has taken care of me :)
  20. ok thanks i will take a look at adding this when i get a chance as always thanks for your help adam
  21. holy shit mtg isnt dead(sorry to go off topic lol) and thanks adam this is nice of you
  22. for my hall of fame i have battle stats on there but what i want it to do is show YOUR name and position and then show everyone elses position as normal but there names should say hidden instead of actually showing everyone elses names if i did not explain that very well let me know
  23. what are the extreamly slim chances someone still has these images>?
×
×
  • Create New...