gms_highscore_find_pos

Usage: gms_highscore_find_pos ( list_id, username )

Description

Returns the index of the given player. When the given player is not found, -1 is returned.

Example

//Show 'Size43's' score
var pos, size43_score;
pos = gms_highscore_find_pos(1"Size43")
if(pos == -1)
{
    show_message("Size43 was not found")
}else{
    size43_score = gms_highscore_score(1, pos);
    show_message("Size43:  "+string(size43_score))
}

Replies (0)

Last message on 22 Nov 2017