NHÓM STEAM
TF2B Developer Group TF2B
NHÓM STEAM
TF2B Developer Group TF2B
66
ĐANG CHƠI
554
TRÊN MẠNG
Thành lập
13 Tháng 04, 2010
Tất cả thảo luận > Bug Reports > Chi tiết chủ đề
Django 20 Thg11, 2012 @ 1:38am
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.
< >
Đang hiển thị 1-1 trong 1 bình luận
Athernar~ 20 Thg11, 2012 @ 9:56am 
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.
< >
Đang hiển thị 1-1 trong 1 bình luận
Mỗi trang: 1530 50

Tất cả thảo luận > Bug Reports > Chi tiết chủ đề