Jump to content

Antony

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by Antony

  1. This would happen to me when I started playing again. Oddly enough, after a while of play, it just leaves.
  2. This is how I get my fishing exp off of RuneScape's highscore list, using PHP: <?php //Get the source of highscores and replace newlines $str = str_replace("\n", "", file_get_contents("http://hiscore-web.runescape.com/lang/en/aff/runescape/hiscorepersonal.cgi?username=Antony_7")); //String to match in $str - used with in preg_match $search = "/.{0,10}<\/td><\/tr>/i"; //An array of strings of extra junk that is matched with preg_match $clear = array("", ""); //Find that match - http://us2.php.net/preg_match preg_match($search, $str, $match); //replace a few extra junk(refer to $clear) that was matched $final_exp = str_replace($clear, "", $match[0]); echo $final_exp; ?> It's not the prettiest and probably not the most efficient code, but it works.
  3. Obviously addnumber. I'm assuming I am missunderstanding you though.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.