GRUPO DE STEAM
TF2B Developer Group TF2B
GRUPO DE STEAM
TF2B Developer Group TF2B
54
JUGANDO
550
ONLINE
Fundado
13 de abril de 2010
Todas las discusiones > Bug Reports > Detalles del tema
Django 20 NOV 2012 a las 1:38
Problems with IEconItems and compiler
I´m still using the old compiler released a long time ago on the old tf2b downloads section and until last TF2 update it worked perfectly. This is the code of the compiler:
<?php
$enabled = true;
if (!$enabled && !$_GET[exec])
exit();
elseif ($enabled && !$_GET[exec])
echo "<p>Please ensure you have edited in your APIKey before running this tool.<br />
Other languages are supported via the lang GET variable (e.g. ?lang=[language])</p>
<form action='compiler.php' method='get'>
<input value='es' name='lang' size='3' />
<input type='hidden' name='exec' value='1' />
<input type='submit' value='Submit' />
</form>";
else
{
include("apikey.php");

$lang = ($_GET[lang]) ? strip_tags($_GET[lang]) : "en";

$itemsgame = json_decode(file_get_contents("http://gtm.steamproxy.vip/IEconItems_440/GetSchema/v0001/?key=$apikey&language=$lang"), true);
$itemsgame = $itemsgame[result][items][item];
$temp = $itemsgame;

unset($itemsgame);
foreach($temp as $item)
{
$defindex = $item[defindex];
$itemsgame[$defindex] = $item;
}

file_put_contents("dictionary.json", json_encode($itemsgame));

echo "<div id='container'><pre>".print_r($itemsgame, true)."</pre></div>";
}
?>

Server says me "Warning: Invalid argument supplied for foreach()" I tried changing name arguments but they still fail. If I use old TFItems it works perfectly. Thanks in advance for this great backpack viewer and its tools.
< >
Mostrando 1-1 de 1 comentarios
Athernar~ 20 NOV 2012 a las 9:56 
I'm not really sure what the point of your post is, since you seem to have discovered a solution yourself.

Regardless, this code is very old and very ugly, so it is not really feasable for me to support it's continued use. Sorry.
< >
Mostrando 1-1 de 1 comentarios
Por página: 1530 50

Todas las discusiones > Bug Reports > Detalles del tema