TWLan Forum

Full Version: Problem mit der Schmiede
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
hast du irgenteine datei verändert gehabt? zum beispiel die techs.php ?
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(""); ?>
Könntest du das bitte mal in "Tags" schreiben also.

[.php] Hier deine techs.php [./php] (ohne die punkte)
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("");

?>
ja!
so soll es sein!
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 =)
Habe das Problem gelöst
danke an alle
Lg
-closed-
kannst du uns denn verraten woran es lag?
für leute die später das selbe prob haben =)
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-