gms_highscore_add_guest
Usage: gms_highscore_add_guest ( list_id, name, score, callback )
Description
Adds the given name to the given highscorelist. The same name can appear multiple times this way. Every name will be prefixed with "Guest_".
When the server has processed the request, callback is called with one of the e_* constants as the first parameter.
Example
gms_highscore_add_guest(..., name, score, guest_highscore_callback);
//In the script 'guest_highscore_callback'
var result;
result = argument0;
if(result != e_ok)
{
if(result == e_invalid_name)
{
//...
}else if(result == e_accountexists)
{
//...
}else{
//...
}
//Ask the player if (s)he wants to try it again
if show_question("Try again?")
{
//...
}
}