• Loading Screen Help.
    15 replies, posted
I've got a loading screen and I've got everything into a web hosting server Here is the printscreen - [url]http://prntscr.com/4gd6my[/url]
[QUOTE=PredzVAIN;45795875]I've got a loading screen and I've got everything into a web hosting server Here is the printscreen - [url]http://prntscr.com/4gd6my[/url][/QUOTE] Yes?
Is their a fix to it from what you see in the print screen?
You're trying to index sid in an array where it doesn't exist. You'll need to post some code.
[QUOTE=ms333;45796001]You're trying to index sid in an array where it doesn't exist. You'll need to post some code.[/QUOTE] This is a payed script from coderhire. Keep it minimal
<?php require_once "config.php"; $id = $_GET["sid"]; $url = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $loadingScreen['apiKey'] . "&steamids=" . $id; $json = file_get_contents($url); $table2 = json_decode($json, true); $table = $table2["response"]["players"][0]; ?> <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="css/main.css" type="text/css" media="screen"> <link rel="stylesheet" href="css/jquery.maximage.css" type="text/css" media="screen" title="CSS" charset="utf-8" /> <script type="text/javascript" src="js/progressbar.js"></script>
WHAT DID I JUST SAY :suicide: [editline]26th August 2014[/editline] You have no steam API key [img]http://5crat.ch/a/9c6v[/img] Everything you need is in text here
I've got my Steam API key in, in the config
also try opening it with a steam64 id [url]http://localhost/Loading[/url] Screen/sid=76561198025252762
It's probably because you're trying to run it through your browser. It's expecting a GET with your SteamID, which isn't provided. ^^
[QUOTE=ms333;45796094]It's probably because you're trying to run it through your browser. It's expecting a GET with your SteamID, which isn't provided. ^^[/QUOTE] I was thinking so too, looks like the die function wasn't implemented pop this up top [code] if (!isset($_GET["sid"])) { die("Woops, you don't seem to be using the correct loading URL format, please make sure it has the correct extension it should look like this: www.yourdomain.com/loading/index.php?sid=%s"); }[/code] [editline]26th August 2014[/editline] Here's what mine looks like [url]http://5crat.ch/ScratchPad/index.php?steamid=76561198025252762[/url] And with a clean download from coderhire [url]http://5crat.ch/ScratchPad/alt/index.php?sid=76561198025252762[/url] Without steamids [url]http://5crat.ch/ScratchPad/index.php[/url] [url]http://5crat.ch/ScratchPad/alt/index.php[/url] Not seeing the same error as OP
So I add that to the top of the index.php?
[QUOTE=PredzVAIN;45796424]So I add that to the top of the index.php?[/QUOTE] It's where mine is, It's purely for debugging in our case
Ah okay, I'll give it a try :) [editline]25th August 2014[/editline] Can you give me a print screen of where you've put yours? Because mine is not working for some reason :/
i can help you add me on steam:etisback101
[QUOTE=PredzVAIN;45796553]Can you give me a print screen of where you've put yours? Because mine is not working for some reason :/[/QUOTE] [img]http://5crat.ch/a/9c6v[/img]
Sorry, you need to Log In to post a reply to this thread.