Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

CSGO Bot help! asap!
#1
Posted 24 March 2016 - 03:27 PM

#2
Posted 24 March 2016 - 03:35 PM

Check ur cost.php or post it here.
#3
Posted 25 March 2016 - 12:33 AM

This is my cost.php
<?php
$item = $_GET['item'];
$item = str_replace("\"", "", $item);
$item = str_replace("\'", "", $item);
$item = str_replace(" ", "%20", $item);
$item = str_replace("\\", "", $item);
@include_once ("pdocon.php");
$stmt = $dbh->prepare("SELECT * FROM items WHERE name=?");
$stmt->execute(array($item));
$rs = $stmt->fetch(PDO::FETCH_ASSOC);
if(!empty($rs)) {
if(time()-$rs["lastupdate"] < 604800) die($rs["cost"]);
}
$link = "http://steamcommunit...h_name=".$item;
$string = file_get_contents($link);
$json = $string;
$obj = json_decode($json);
//print $obj->{"median_price"}; // 12345
//$obj = json_decode($string);
if($obj->{'success'} == "0") die("notfound");
$lowest_price = $obj->{'median_price'};
$lowest_price=str_replace("$", "", $lowest_price);
$lowest_price = (float)($lowest_price);
//$stmt = $dbh->prepare("DELETE FROM items WHERE name=?");
//$stmt->execute(array($item));
$stmt = $dbh->prepare("UPDATE items SET `cost` = ?,`lastupdate` = ? WHERE `name` = ?");
$stmt->execute(array($lowest_price, time(), $item));
$stmt = $dbh->prepare("INSERT INTO items (`name`,`cost`,`lastupdate`) VALUES (?, ?, ?)");
$stmt->execute(array($item, $lowest_price, time()));
echo $lowest_price;
?>
#4
Posted 28 March 2016 - 02:41 AM

Just a long shot but maybe the bot is making too many requests to steam api, so its giving an error...
Or maybe there is something wrong with the $item var. Try echoing it and see what is the returned value.
#5
Posted 28 March 2016 - 01:11 PM

Maybe you'r rcode is wrong
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users