How to mine sv_loadingurl for community/steamid/fish?
0 replies, posted
Posted this same thread in the lua questions subforum, but it may be the wrong place over there - Sorry for the double post.
=======================================
Hey fellas.
I'm having abit of trouble here. I'm trying to get the connecting players community id for use in a sv_loadingurl page.
Following the guide on the wiki - [url]http://wiki.garrysmod.com/?title=Sv_loadingurl[/url]
using the example on the page with +sv_loadingurl "example.com/loadingpage.php?steamid=%s" as a commandline argument
and using
[code]
<?php
$communityid = $_GET["steamid"];
echo "Your Community ID is $communityid<br>";
?>
[/code]
on the php page.
Results in "Your Community ID is [b]s[/b]" being printed.
The page works fine in a browser when specifying the community id in the url.
Ive tried many things already playing with the url in the command line, including attempting to escape the percent(%) character (results in \s being printed)
If anyone can shed some light on this I would really appreciate it.
Sorry, you need to Log In to post a reply to this thread.