• Custom loading screen
    1 replies, posted
I recently started up a TTT server, and I am trying to make a custom loading screen, this is what I currently have [CODE]<html> <script> function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) {} function DownloadingFile( fileName ) {} function SetStatusChanged( status ) {} function SetFilesTotal( total ) {} function SetFilesNeeded( needed ) {} </script> <?php $mapname = $_GET["%m"]; $authserver = bcsub( $communityid, '76561197960265728' ) & 1; //Get the third number of the steamid $authid = ( bcsub( $communityid, '76561197960265728' ) - $authserver ) / 2; //Concatenate the STEAM_ prefix and the first number, which is always 0, as well as colons with the other two numbers $steamid = "STEAM_0:$authserver:$authid"; ?> <H1>You are currently connecting to $mapname</H1> </html>[/CODE] When joining my players are not seeing anything, what did i do wrong?
[QUOTE=ilovereno99;41561330]what did i do wrong?[/QUOTE] Can't guarantee this is the reason, but your html isn't fully correct. You don't have any <body> tag. Not sure if gmod/awesomium requires it but <script> should be <script type="text/javascript"> Start with a basic page and make sure that it shows ok. [code]<html> <head> <title>Loading Screen</title> </head> <body> If you see this it is working </body> </html>[/code] [editline]23rd July 2013[/editline] More stuff I see wrong: $mapname = $_GET["%m"]; should only be "m", not "%m" , but that shouldn't stop it from showing.
Sorry, you need to Log In to post a reply to this thread.