Open azoulka opened 9 years ago
Hello man,
I have two problem with csgojackpotV2
1) All the time value 0% and 0$
Code cost.php
$link = "http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=".$item; $string = file_get_contents("response.json"); $obj = json_decode($string); if($obj->{'success'} == "0") die("notfound"); $lowest_price = $obj->{'lowest_price'}; $lowest_price[strlen($lowest_price)] = 0.01; $lowest_price = str_replace("$","",$lowest_price); $lowest_price = (float)($lowest_price); mysql_query("DELETE FROM items WHERE name='$item'"); mysql_query("INSERT INTO items (name,cost,lastupdate) VALUES ('$item','$lowest_price','".time()."')"); echo $lowest_price; ?>
name
cost
lastupdate
2) the weather turns to the infinite and he never chooses one winner
http://hpics.li/f6fda5d
Can you help me please?
That is not the script I posted.
Hello man,
I have two problem with csgojackpotV2
1) All the time value 0% and 0$
Code cost.php
$link = "http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=".$item; $string = file_get_contents("response.json"); $obj = json_decode($string); if($obj->{'success'} == "0") die("notfound"); $lowest_price = $obj->{'lowest_price'}; $lowest_price[strlen($lowest_price)] = 0.01; $lowest_price = str_replace("$","",$lowest_price); $lowest_price = (float)($lowest_price); mysql_query("DELETE FROM items WHERE name='$item'"); mysql_query("INSERT INTO items (
name
,cost
,lastupdate
) VALUES ('$item','$lowest_price','".time()."')"); echo $lowest_price; ?>2) the weather turns to the infinite and he never chooses one winner
http://hpics.li/f6fda5d
Can you help me please?