• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Games
  4. Criminals & Maffiagames
  5. Uitbreidingen en Overige
  6. Archief
  7. Andere games

Forum

  • Het Grote Vibe Code Topic

    Jeroen.G 11 mei 2026 om 09:28
  • Ictscripters Chat

    AarClay 21 april 2026 om 11:34
  • PWYL source gezocht

    Syntax 25 maart 2026 om 11:44
  • Help testers nodig voor android app Urgent

    Servertjee 20 februari 2026 om 12:07
  • Partner Gezocht om meerdere NFT Collecties op Open Sea te Plaatsen

    Servertjee 20 februari 2026 om 12:06
  • Afspraken systeem met planbeperking

    Jeffrey.Hoekman 20 februari 2026 om 11:52
  • Developer Gezocht

    Servertjee 19 februari 2026 om 17:31
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Servertjee 18 februari 2026 om 16:57

Marktplaats

  • 370 Nieuwe Domeinnamen April 2026

    shiga 1 mei 2026 om 12:06
  • Snel een website nodig?

    Syntax 10 april 2026 om 12:55
  • Sicarras.com - Moderne Mafia Text-Based RPG

    Syntax 5 april 2026 om 16:22

crime source 1.3 fout

  • gekie2081
  • 31 augustus 2012 om 22:13
  • gekie2081
    Beginner
    Berichten
    32
    • 31 augustus 2012 om 22:13
    • #1

    wie kan mij helpen als ik naar bouwgrond in het menu ga dan op bouw klik krijg ik deze fout code

    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\clanshop-bouw.php on line 61

    dit is het script waar de fout in moet zitten

    PHP
    <?php /* ------------------------- */
    
    
      $_POST['omnilog']			= 1;
      $OMNILOG				= 1;
      include("_config2006.php");
      if(! check_login()) {
        header("Location: login.php");
        exit;
      }
    
    
      mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
        include("_include-gevangenis.php");
    /* ------------------------- */ ?>
    <html>
    
    
    
    
    <head>
    <title><?php echo $page->sitetitle; ?></title>
    <link rel="stylesheet" type="text/css" href="<? echo $sitelink;?>/layout/layout<?php echo $page->layout; ?>/css/css.css">
    
    
    </head>
    
    
    
    
    <table width=100%>
    <?php /* ------------------------- */
    
    
      if ($data->clanlevel >= 8 || $data->clanlevel == 6) { 
    print "  <tr><td class=\"subTitle\"><b>Clan - Bouwterrein</b></td></tr>\n";
    
    
        $dbres				= mysql_query("SELECT * FROM `[clans]` WHERE `name`='{$data->clan}'");
        $clan				= mysql_fetch_object($dbres);
        if(isset($_GET['x'])) {
          $dbres				= mysql_query("SELECT * FROM `[weapons]` WHERE `name`='{$_GET['x']}' AND (`area`=8 OR `area`=8+{$clan->type})");
          if($item = mysql_fetch_object($dbres)) {
            if($clan->type == 1)
              $item->costs			= round($item->costs*0.95);
    
    
            if($item->costs <= $clan->cash) {
              if(eval($item->eval) > 0) {
                $type			= Array("Huis"		=> "homes",
    						"Muur"		=> "def_lvl1",
    						"Coffeeshop"	=> "money_lvl1",
    						"Chemie Lab"	=> "money_lvl1",
    						"Aandeel"	=> "money_lvl1");
                $type			= $type[$item->name];
                $clan->cash			-= $item->costs;
                $clan->{"$type"}++;
    mysql_query("INSERT INTO `[clanlogs]` (`datum`,`wie`,`waar`,`wat`,`hoeveel`) values(NOW(),'$data->login','{$data->clan}','$type','1')");
                mysql_query("UPDATE `[clans]` SET `cash`={$clan->cash},`$type`=". ($clan->{"$type"}) ." WHERE `name`='{$clan->name}'");
                print "  <tr><td class=\"mainTxt\">Je hebt een nieuw {$item->name} gekocht</td></tr>\n";
              }
              else
                print "  <tr><td class=\"mainTxt\">{$item->error}</td></tr>\n";
            }
            else
              print "  <tr><td class=\"mainTxt\">Je hebt niet genoeg geld om een {$item->name} te bouwen</td></tr>\n";
          }
        }
    
    
        $dbres				= mysql_query("SELECT * FROM `[weapons]` WHERE `area`=8 OR `area`=8+{$clan->type}");
        while($weapon = mysql_fetch_object($dbres)) {
          if($clan->type == 1)
            $weapon->costs			= round($weapon->costs*0.95);
          else if($clan->type == 2)
            $weapon->defence		= round($weapon->defence*1.05);
    
    
          eval($weapon->eval);
          eval("\$weapon->max = \"{$weapon->max}\";");
    
    
          print <<<ENDHTML
      <tr><td class="mainTxt">
    	<table width=100% height=100% cellpadding=0 cellspacing=0>
    	  <tr><td>&nbsp;<i>{$weapon->name}</i><br><img src="images/{$weapon->url}.gif" width=200 height=150></td>
    
    
    ENDHTML;
    
    
          eval("\$weapon->max = \"{$weapon->max}\";");
          print "	  <td valign=\"top\" align=\"right\"><table width=100% height=100%>\n";
          print "	    <tr><td valign=\"top\">{$weapon->extra}</td></tr>\n";
          print "	    <tr><td valign=\"bottom\"><table width=100%>\n";
          if($weapon->attack != NULL)
            print "	      <tr><td width=75>Attack:</td>		<td>{$weapon->attack}</td></tr>\n";
          if($weapon->defence != NULL)
            print "	      <tr><td width=75>Defence:</td>		<td>{$weapon->defence}</td></tr>\n";
          if($weapon->costs != NULL)
            print "	      <tr><td width=75>Kost:</td>		<td>\${$weapon->costs}</td></tr>\n";
          if($weapon->max != NULL)
            print "	      <tr><td width=75 valign=\"top\">Benodigdheden:</td>	<td>{$weapon->max}</td></tr>\n";
            print <<<ENDHTML
    	    </table></td></tr>
    	  </table></td></tr>
    ENDHTML;
          if($clan->cash >= preg_replace("/,/","",$weapon->costs) && eval($weapon->eval) > 0)
            print "	  <tr><td></td>  <td height=5 align=\"right\"><a href=\"clanshop.php?p=buy&x={$weapon->name}\"><b>Koop</b></a></td></tr>\n";
    
    
       else
            print "	  <tr><td></td>  <td height=5 align=\"right\"><a href=\"clanshop.php?p=buy&x={$weapon->name}\" style=\"color: #000000;\">Koop</a></td></tr>\n";
    
    
          print <<<ENDHTML
    
    
    	</table>
      </td></tr>
    
    
    ENDHTML;
        }
     	echo"  <tr><td class=\"mainTxt\"><center><b>Je clan heeft nog €{$clan->cash} contant</b></center></td></tr>";
     }
        
      else if($data->clanlevel >= 8 || $data->clanlevel == 6) {
       $dbres				= mysql_query("SELECT * FROM `[clans]` WHERE `name`='{$data->clan}'");
        $clan				= mysql_fetch_object($dbres);
     }
    /* ------------------------- */ ?>
    </table>
    
    
    </body>
    
    
    
    
    </html>
    Toon Meer

    gaat om deze game script CrimeSourceV1.3

  • Guest, wil je besparen op je domeinnamen? (ad)

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16
  • Tech.eu - Europees Start-up, Financiering en Technologienieuws

    ICTscripters 7 mei 2026 om 12:15

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design