Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral

About Twisted

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello all, I wanted to write this forum for someone who helped me with my issue with gangs on my game support form it was "QUERY ERROR: Query was SELECT * FROM gangwars where warID=", for days people have been trying to help with every bit of advice but still the same error happened, I was on this error for 3 weeks while my players was nice enough to not war until it was fixed. Today it has now been fixed and even improved by one person Uridium, who spent the last few days with me trying to figure it out, multiple replacements of .php files, endless testing, to the point we was both nearl
  2. function gang_staff_surrender() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=surrender' method='post'> Choose who to surrender to.<br /> <input type='hidden' name='subm' value='submit' /> Gang: <select name='war' type='dropdown'>"; $wq=$db->query("SELECT * FROM gangwars where warDECLARER={$ir['gang']} or warDECLARED={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $d=date('F
  3. Im new to coding and slowly learning to me everything looks alright is there anyway of showing you? maybe youll pick something up I wont?
  4. Yes im running MC Codes v2, nothing has been changed to date and yes both gangs are created in game, the war is there, it works, someone can request for surrenders but the other gang cannot accept them
  5. Hello, Ive added everything in as the file says, but when I try to buy the pack it just refreshes the page, and nothing happens? do you have any ideas?
  6. Hello, I've wrapped my head around this many times trying to figure out the issue, its to do with gang wars, now gangs can ask for a surrender but the other gangs cant accept them did anyone ever had this issue or know what i need to do? Many thanks
  7. <?php /** * MCCodes Version 2.0.5b * Copyright (C) 2005-2012 Dabomstew * All rights reserved. * * Redistribution of this code in any form is prohibited, except in * the specific cases set out in the MCCodes Customer License. * * This code license may be used to run one (1) game. * A game is defined as the set of users and other game database data, * so you are permitted to create alternative clients for your game. * * If you did not obtain this code from MCCodes.com, you are in all likelihood * using it illegally. Please contact MCCodes to discuss licensing options * in this c
  8. the reason why you signed in was because i went back to my old scripts it was the new one i needed to try and fix :)
  9. Found it function request_csrf_code($formid) { // Generate the token $token = md5(mt_rand()); // Insert/Update it $issue_time = time(); $_SESSION["csrf_{$formid}"] = array('token' => $token, 'issued' => $issue_time); return $token; } /** * Request that an anti-CSRF verification code be issued for a particular form in the game, and return the HTML to be placed in the form. * @param string $formid A unique string used to identify this form to match up its submission with the right token. * @return string The HTML for the code issued to be added t
  10. sorry for the late reply i just got back on here is the issue as far as i can see with a picture showing what happens require_once('globals_nonauth.php'); // Check CSRF input if (!isset($_POST['verf']) || !verify_csrf_code('login', stripslashes($_POST['verf']))) { die( "<h3>{$set['game_name']} Error</h3> Your request has expired for security reasons! Please try again.<br /> <a href='login.php'>> Back</a>"); } // Check username and password input $username = (array_key_exists('username', $_POST) && is_string($_P
  11. damnnnnnn im partial to MCC just personal preference really, issue being I had ravan mafia script and I had to take it down as I recently found out its illegal
  12. Hey all, Just brought the script and ive been having an issue with the authenticate.php, ive looked into the forums to try and find a fix with no luck, im new to coding and would like to get this working properly due to i prefer google chrome then microsoft edge. Any help ill appreciate it
  • Create New...