Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default [Flash/PHP] Arcade

    Well I want to grab the scores from a game some one has just played with PHP, but I'm unsure how to do this with any game what has highscores, so can any one help?

    Basicly I'm creating an arcade where admins can add games, now I can do this bit but next I want highscores, I can display and all that but I don't know how to grab the actual score from the game and so it works with any game what has high scores once it's finished, I've seen this done on things like thunder arcade and the Vb & IPB arcades.

    Can any one help?

  2. #2
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Erm.. I think you'd have to get the flash game to enter the scores into a database, then use a mysql_fetch_array to display them in a table in your php page.
    Coming and going...
    Highers are getting the better of me

  3. #3
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Like Cj said, it must be something to do with the game, is there anything like $_GET['score'] or anything?

  4. #4
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Best place to start is to print_r $_POST to see what vars you are working with.

    From that you can begin to log and save the data.

    Hope that helps

  5. #5
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    It'd be a challenging system to code. I know vBArcade (or whatever it's called) makes you set an amount of options relating to the scoring of each individual game (whether aim of the game is to get a low score or high score etc).

  6. #6
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Hmmm.. I'll see if I can contact the guy who made thunderarcade and see how he did it I remember you just had to enter the URL of your site and the arcade would get the scores for any game you have put in the arcade, instead o having to do it custom for each game.

  7. #7
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    If you use the games from a arcade system then they will all follow the same format.

    I have played with it before and got the score to show

  8. #8
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Quote Originally Posted by Cj555 View Post
    Erm.. I think you'd have to get the flash game to enter the scores into a database, then use a mysql_fetch_array to display them in a table in your php page.
    Who said anything about MySQL ?

    You would need to have a PHP capable database, and echo out the top say 10 high scores. Although, as Cj555 says, MySQL would be the best option.
    James


    Connected to reality through a proxy server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •