Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Types/Player Group

From SC2Mapster Wiki
Jump to: navigation, search

Group of Players

The index of player is from 1 to the size of the playergroup. There is no index 0.

Galaxy Code Example

void gf_save_all_high_score () {
    playergroup my_group;
    int a;

    // Variable Declarations
    int lv__player;

    // Variable Initialization
    lv__player = 0;

    // Implementation
    my_group = PlayerGroupActive();
    a = 1;
    while (a <= PlayerGroupCount( my_group)) {
        lv__player = PlayerGroupPlayer( my_group , a);
        //an user defined function
        gf_save_single_player_highscore(lv__player);
        a = a + 1;
    }
}