Thu, 28.03.2024, 10:28
Welcome Guest | RSS

Vadim @ internetz

Says

Main » 2009 » Aug » 6 » Using gmhighscores system
11:23
Using gmhighscores system
Today we'll discuss, how to use gmhighscores.com online highscore system.

First of all, you have to register at the site.
Here you don't see anything special, or something I should describe better.

Then we log in, and go to manage account page.

Now, go to Register New Game.
At the current stage of site, you don't see anything hard there - you just need to input the game name.
If after clicking the button error page appears, try changing the game name.

Now you get directed to your account page, and your game appears in the list.

You finished with the website part of the action. Now let's see what functions you get provided with.
the example you probably got already contains 3 scripts:

hs_sumbit(name,gameID,score,verify1,verify2,verify3)
name is player's name, which will be entered to highscores.
score is player's score (which also goes to highscores).
the other 4 variables determine where the score will go and if it will go somewhere at all:

remember, the verification values must match, else the score goes nowhere.

hs_user(place,gameID)
this simple function returns the name of user that stands on position place in the game with id gameID (you can discover it from your account page, again).

hs_score(place,gameID)
same as above, but returns users score.

Example for filling-up the standart highscore table with online highscores:

var _n,_i,i,gameid;
gameid = 196;
highscore_clear();
for (i = 1; i <= 10; i += 1)
{
    _i = 0;
    _n = hs_user(i,gameid);
    if (_n != "0")
    {
        _i = hs_score(i,gameid);
    }
    else _n = "";
    highscore_add(_n,_i);
}


I hope this tutorial was usefull for you. Good luck in your game developement.
Views: 8271 | Added by: Vadim647 | Tags: online highscore gmhighscores | Rating: 0.0/0
Total comments: 2
0  
2 Illiltsmeathe   (01.02.2012 22:56) [Материал]
Hi! my identify is Jully. I would like to meemeet admissible brat :)
This is my homepage [url=]http://jskdh5jkd7djh4.com/[/url]l

0  
1 Tamper   (07.11.2009 12:00) [Материал]
Very nice. :)
Although I don't understand why they have made it so complicated.
It could have been made much simpler with a bit of more effort.
Although, I don't think anyone WANTS to do it... so they win :P

Tamper


Only registered users can add comments.
[ Registration | Login ]
[Eng]
Login form
Search
Entries archive
Tag Board
Statistics

Online: 1
Guests: 1
Users: 0