[MOD] Tournament v1.8, 2.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • tellez wrote:

      Danter14 wrote:

      yamilrh wrote:

      gracias, pero recuerda que yo solo hice que funcionara en 2moons. Y ya jeremy me estuvo atacando porque asume que le robe su codigo, cuando claramente en el primer mensaje di el credito a quien lo creo.
      Jérémy has always been like that, but let's move on and besides he just see the money.What matters is the community right here.


      NOTICE: "Undefined variable: totalAttackers"
      File: /www/wwwroot/xnovaone.online/includes/classes/missions/MissionCaseAttack.class.php | Line: 441
      URL: xnovaone.online/game.php?page=scan | Version: 1.8.git
      Stack trace:
      #0 /includes/classes/missions/MissionCaseAttack.class.php(441): errorHandler(8, 'Undefined varia...', '/www/wwwroot/xn...', 441, Array)
      #1 /includes/classes/class.FlyingFleetHandler.php(80): MissionCaseAttack->TargetEvent()
      #2 /includes/FleetHandler.php(31): FlyingFleetHandler->run()
      #3 /includes/common.php(131): require('/www/wwwroot/xn...')
      #4 /game.php(24): require('/www/wwwroot/xn...')
      #5 {main}


      How solved this problem ?
    • Dany92 wrote:


      How solved this problem ?
      Puedes cambiar esta parte del código

      Source Code

      1. if($i == 0)
      2. tournement($userID, 3, round($combatResult['unitLost']['defender'] / $totalAttackers));
      3. elseif($i == 1)
      4. tournement($userID, 3, round($combatResult['unitLost']['attacker'] / $totalDefenders));
      5. if ($combatResult['won'] == 'a') {
      6. tournement($userID, 4, 1);
      7. }
      VERY SAD :/ :/ :/ :/
    • yamilrh wrote:

      Dany92 wrote:


      How solved this problem ?
      Puedes cambiar esta parte del código

      Source Code

      1. if($i == 0)
      2. tournement($userID, 3, round($combatResult['unitLost']['defender'] / $totalAttackers));
      3. elseif($i == 1)
      4. tournement($userID, 3, round($combatResult['unitLost']['attacker'] / $totalDefenders));
      5. if ($combatResult['won'] == 'a') {
      6. tournement($userID, 4, 1);
      7. }



      how change ?thanks