Jump to content

Welcome to NulledBlog
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!
Photo

CSGO Bot help! asap!


  • Please log in to reply
4 replies to this topic

#1
ReqqEST

  • Offline
  • Advanced Member

  • Posts:
    108
    Reputation:
    0
    Joined:
    28 Sep, 2015
Hey guys I need help fixing this error on my csgo bot.
 
[SERVER] The Bot has logged in!
[DEBUG] Processing offer #1104431210 from jesus khwite 
[DEBUG] Declined offer #1104431210 from jesus khwite| Reason: Steam Market Issues (Can't get the skin's value)
[DEBUG] Declined offer #1104431210 from jesus khwite | Reason: Steam Market Issues (Can't get the skin's value)
Decline error: Error: InvalidState
[DEBUG] Declined offer #1104431210 from jesus khwite  | Reason: Steam Market Issues (Can't get the skin's value)
Decline error: Error: InvalidState
[DEBUG] Declined offer #1104431210 from jesus khwite | Reason: RECHECK - Steam Market Issues (Can't get the skin's value)
Decline error: Error: InvalidState

  • 0

#2
xChr11s

  • Offline
  • Veteran

  • Posts:
    423
    Reputation:
    66
    Joined:
    17 Oct, 2015

Check ur cost.php or post it here.


  • 0

#3
ReqqEST

  • Offline
  • Advanced Member

  • Posts:
    108
    Reputation:
    0
    Joined:
    28 Sep, 2015

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;
?>


  • 0

#4
Eisenworth

  • Offline
  • The One

  • Posts:
    34
    Reputation:
    9
    Joined:
    28 Mar, 2016

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.


  • 0

#5
Imjoybro

  • Offline
  • Member

  • Posts:
    55
    Reputation:
    1
    Joined:
    01 Mar, 2016

Maybe you'r rcode is wrong


  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users