Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem mit der Schmiede
#1
Also
Folgende Fehler

Warning: Invalid argument supplied for foreach() in C:\Dokumente und Einstellungen\Paul\Desktop\dslan_v1.21\dslan_v1.21\htdocs\actions\smith.php on line 18

Warning: Division by zero in C:\Dokumente und Einstellungen\Paul\Desktop\dslan_v1.21\dslan_v1.21\htdocs\actions\smith.php on line 144

habe aber unter actions smith nix verändert
die sehen so aus...

<?php /*This encoded file was generated using PHPCoder (http://phpcoder.sourceforge.net/) and eAccelerator (http://eaccelerator.sourceforge.net/)*/ if (!is_callable("eaccelerator_load") && !@dl("eAccelerator.so")) { die("This PHP script has been encoded using the excellent eAccelerator Optimizer, to run it you must install <a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator or the eLoader</a>"); }eaccelerator_load('eJyNWltvG8cVnuFFoRzJrWQFiJUUWdctaYl2INtBkkZikqUk33SjvFJbCnIIijsk116S6u6SKlNRgN2XPCTw9SVx4DsKFCj60pc8pH+iKNA/kD4W6A/wQ+fMZe9yY8Dc2Zkz5zvnO2dmzu5qUZ2fX1xevKpurF1FKYQQRiiB0FEE//6N2QWVkmwAJ39Gr+r8xuW1Va2yomra5V8vLZYrly5fvKSq9HZhAY+DKEphnJyhV1u/Xm3a+o0rlzT1ysLSJXV5CZoL7GfVvq43qzfor9m8sqpqC0vLeZidoHasMVOSk4B3wzE6bVs5o6hdu/6yaXXbDWXxt4vzJ7SMMGuYXmtmZadrmLqNZ1k3mDAC/U1Su1FpE6ITXYWRAk6mwbSW4TTBv+0Mw0QM8DX62zNMs9oguMik2VDBk8nkoZ1CY6iUiZm0zjoxdLsox3gf5szkua4xVGMNnARXHatLpuF+3O2G6fWqaRPXzSOgsNnZ447irMBPJPLDzKQXWBsRohnOiENqTUrIiCQE5BrEqVQtq9pXRzgbQ/Si77SrLQIWFrgK5uoKtFGSql6FViKVSp5BDAP8Az4MnWOmUUDPDvQN0Qnc6R2uE27hPgu3r+F0aoi10piycgFaKW1U6A7aP8rsR579DavT3d0eFZbiIHhxlPnFnJEiQyhTGo2Kunivg2JQKiA3RplTKDW0wUXSmeyotHUaVsckOnuUmZXUxoSSn9LfVvX3q90WN3CDqsLZMR57zoQ2fgjgCgzgDFANrcRwKnPZk4YU4QaPC7IhO1gU8c4453pYcD3OuR4WXI+7XI8Ll/AFaA2Xjgk+wqasH0McNpUuQnOOMTh3TFAp0WudbttxlcT6fuwYT/lUOj/Bkv4cKk0IFa5LrCfWjgnPjgnPjglf1F07tIlXxmDCDd0btHUOnX2D6c2U3mSzcBJia9gVi9ikatEtw8bacV+a6zt49rhMQgD9XZdY/dJx4UtgA2DzMIUTCyTDpHDyNxB
Kann da jem. helfen?
was rein posten was funktioniert
Reply
#2
hast du irgenteine datei verändert gehabt? zum beispiel die techs.php ?

Reply
#3
ja
das habe ich aber zurück geändert
das sieht so aus
(bloß speer und schwert auf 4 wie an meinem anderen auch)
hier:
<?php $cl_techs = new techs(); //////////// Zeitfaktor zum forschen in der Schmiede //////////// $cl_techs->set_smithfactor("0.997","0.9096"); ///////////////////// Alle Technologien ///////////////////// $cl_techs->add_tech("Speer","spear"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("256","1.6"); $cl_techs->set_stoneprice("244","1.6"); $cl_techs->set_ironprice("296","1.6"); $cl_techs->set_time("2900","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array()); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description(""); $cl_techs->add_tech("Schwert","sword"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("360","1.6"); $cl_techs->set_stoneprice("320","1.6"); $cl_techs->set_ironprice("312","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"1")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description(""); $cl_techs->add_tech("Axt","axe"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("280","1.6"); $cl_techs->set_stoneprice("336","1.6"); $cl_techs->set_ironprice("228","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"2")); $cl_techs->set_attType(array('off')); $cl_techs->set_description(""); $cl_techs->add_tech("Leichte Kavallerie","light"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("440","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"3")); $cl_techs->set_attType(array('off')); $cl_techs->set_description(""); $cl_techs->add_tech("Schwere Kavallerie","heavy"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("600","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"10","smith"=>"15")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description(""); $cl_techs->add_tech("Ramme","ram"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("560","1.6"); $cl_techs->set_stoneprice("800","1.6"); $cl_techs->set_ironprice("192","1.6"); $cl_techs->set_time("4480","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"1")); $cl_techs->set_attType(array('off')); $cl_techs->set_description(""); $cl_techs->add_tech("Katapult","catapult"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("640","1.6"); $cl_techs->set_stoneprice("960","1.6"); $cl_techs->set_ironprice("560","1.6"); $cl_techs->set_time("5600","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"2","smith"=>"12")); $cl_techs->set_attType(array('def','off')); $cl_techs->set_description(""); ?>
Reply
#4
Könntest du das bitte mal in "Tags" schreiben also.

[.php] Hier deine techs.php [./php] (ohne die punkte)
Manchmal denke ich:
Reply
#5
PHP Code:
<?php $cl_techs = new techs();  //////////// Zeitfaktor zum forschen in der Schmiede ////////////  $cl_techs->set_smithfactor("0.997","0.9096");  ///////////////////// Alle Technologien /////////////////////  $cl_techs->add_tech("Speer","spear"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("256","1.6"); $cl_techs->set_stoneprice("244","1.6"); $cl_techs->set_ironprice("296","1.6"); $cl_techs->set_time("2900","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array()); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");  $cl_techs->add_tech("Schwert","sword"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("360","1.6"); $cl_techs->set_stoneprice("320","1.6"); $cl_techs->set_ironprice("312","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"1")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");  $cl_techs->add_tech("Axt","axe"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("280","1.6"); $cl_techs->set_stoneprice("336","1.6"); $cl_techs->set_ironprice("228","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"2")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");  $cl_techs->add_tech("Leichte Kavallerie","light"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("440","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"3")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");  $cl_techs->add_tech("Schwere Kavallerie","heavy"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("600","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"10","smith"=>"15")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");  $cl_techs->add_tech("Ramme","ram"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("560","1.6"); $cl_techs->set_stoneprice("800","1.6"); $cl_techs->set_ironprice("192","1.6"); $cl_techs->set_time("4480","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"1")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");  $cl_techs->add_tech("Katapult","catapult"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("640","1.6"); $cl_techs->set_stoneprice("960","1.6"); $cl_techs->set_ironprice("560","1.6"); $cl_techs->set_time("5600","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"2","smith"=>"12")); $cl_techs->set_attType(array('def','off')); $cl_techs->set_description(""); ?>

recht so??
<?php

$cl_techs = new techs();



//////////// Zeitfaktor zum forschen in der Schmiede ////////////



$cl_techs->set_smithfactor("0.997","0.9096");



///////////////////// Alle Technologien /////////////////////



$cl_techs->add_tech("Speer","spear");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("256","1.6");

$cl_techs->set_stoneprice("244","1.6");

$cl_techs->set_ironprice("296","1.6");

$cl_techs->set_time("2900","1.75");

$cl_techs->set_maxStage("4");

$cl_techs->set_needed(array());

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Schwert","sword");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("360","1.6");

$cl_techs->set_stoneprice("320","1.6");

$cl_techs->set_ironprice("312","1.6");

$cl_techs->set_time("3085","1.75");

$cl_techs->set_maxStage("4");

$cl_techs->set_needed(array("smith"=>"1"));

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Axt","axe");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("280","1.6");

$cl_techs->set_stoneprice("336","1.6");

$cl_techs->set_ironprice("228","1.6");

$cl_techs->set_time("3085","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("smith"=>"2"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Leichte Kavallerie","light");

$cl_techs->set_group("Kavallerie");

$cl_techs->set_woodprice("440","1.6");

$cl_techs->set_stoneprice("496","1.6");

$cl_techs->set_ironprice("416","1.6");

$cl_techs->set_time("5040","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("stable"=>"3"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Schwere Kavallerie","heavy");

$cl_techs->set_group("Kavallerie");

$cl_techs->set_woodprice("600","1.6");

$cl_techs->set_stoneprice("496","1.6");

$cl_techs->set_ironprice("416","1.6");

$cl_techs->set_time("5040","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("stable"=>"10","smith"=>"15"));

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Ramme","ram");

$cl_techs->set_group("Belagerungswaffen");

$cl_techs->set_woodprice("560","1.6");

$cl_techs->set_stoneprice("800","1.6");

$cl_techs->set_ironprice("192","1.6");

$cl_techs->set_time("4480","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("garage"=>"1"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Katapult","catapult");

$cl_techs->set_group("Belagerungswaffen");

$cl_techs->set_woodprice("640","1.6");

$cl_techs->set_stoneprice("960","1.6");

$cl_techs->set_ironprice("560","1.6");

$cl_techs->set_time("5600","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("garage"=>"2","smith"=>"12"));

$cl_techs->set_attType(array('def','off'));

$cl_techs->set_description("");

?>
Reply
#6
ja!
so soll es sein!
Helf ich dir? Dann Bewerte mich!

[Image: create.php?uid=7072]
Reply
#7
PHP Code:
<?php

$cl_techs 
= new techs();



//////////// Zeitfaktor zum forschen in der Schmiede ////////////



$cl_techs->set_smithfactor("0.997","0.9096");



///////////////////// Alle Technologien /////////////////////



$cl_techs->add_tech("Speer","spear");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("256","1.6");

$cl_techs->set_stoneprice("244","1.6");

$cl_techs->set_ironprice("296","1.6");

$cl_techs->set_time("2900","1.75");

$cl_techs->set_maxStage("4");

$cl_techs->set_needed(array());

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Schwert","sword");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("360","1.6");

$cl_techs->set_stoneprice("320","1.6");

$cl_techs->set_ironprice("312","1.6");

$cl_techs->set_time("3085","1.75");

$cl_techs->set_maxStage("4");

$cl_techs->set_needed(array("smith"=>"1"));

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Axt","axe");

$cl_techs->set_group("Infanterie");

$cl_techs->set_woodprice("280","1.6");

$cl_techs->set_stoneprice("336","1.6");

$cl_techs->set_ironprice("228","1.6");

$cl_techs->set_time("3085","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("smith"=>"2"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Leichte Kavallerie","light");

$cl_techs->set_group("Kavallerie");

$cl_techs->set_woodprice("440","1.6");

$cl_techs->set_stoneprice("496","1.6");

$cl_techs->set_ironprice("416","1.6");

$cl_techs->set_time("5040","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("stable"=>"3"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Schwere Kavallerie","heavy");

$cl_techs->set_group("Kavallerie");

$cl_techs->set_woodprice("600","1.6");

$cl_techs->set_stoneprice("496","1.6");

$cl_techs->set_ironprice("416","1.6");

$cl_techs->set_time("5040","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("stable"=>"10","smith"=>"15"));

$cl_techs->set_attType(array('def','off','spy'));

$cl_techs->set_description("");



$cl_techs->add_tech("Ramme","ram");

$cl_techs->set_group("Belagerungswaffen");

$cl_techs->set_woodprice("560","1.6");

$cl_techs->set_stoneprice("800","1.6");

$cl_techs->set_ironprice("192","1.6");

$cl_techs->set_time("4480","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("garage"=>"1"));

$cl_techs->set_attType(array('off'));

$cl_techs->set_description("");



$cl_techs->add_tech("Katapult","catapult");

$cl_techs->set_group("Belagerungswaffen");

$cl_techs->set_woodprice("640","1.6");

$cl_techs->set_stoneprice("960","1.6");

$cl_techs->set_ironprice("560","1.6");

$cl_techs->set_time("5600","1.75");

$cl_techs->set_maxStage("3");

$cl_techs->set_needed(array("garage"=>"2","smith"=>"12"));

$cl_techs->set_attType(array('def','off'));

$cl_techs->set_description("");

?>




sooo ich habs nochmal gesäubert das es nicht so eine lange zeile ist =)
60% der Amokläufer Spielen Ego Shooter...
100% Essen Brot und Atmen...


VERBIETET BROT UND SAUERSTOFF Big GrinBig Grin


Wenn ich helfen konnte bewerten bitte =)
Reply
#8
Habe das Problem gelöst
danke an alle
Lg
-closed-
Reply
#9
kannst du uns denn verraten woran es lag?
für leute die später das selbe prob haben =)
60% der Amokläufer Spielen Ego Shooter...
100% Essen Brot und Atmen...


VERBIETET BROT UND SAUERSTOFF Big GrinBig Grin


Wenn ich helfen konnte bewerten bitte =)
Reply
#10
hmm...
soll ich wirklich??^^
also
ich habe einfach von meinem anderen pc die schmiede techs kopiert und die fehler haften auf dem anderen pc ersetzt
oben in meinem doppelpost stehen also die richtigen techs....
ich weiß nicht woran es lag...
noch was?
ansonsten
-closed-
Reply




Users browsing this thread: 7 Guest(s)