Help Needed.Trying to save initial google play user id

Discussion in 'Programming' started by ricardo1996, Feb 10, 2019.

  1. ricardo1996

    ricardo1996 Member

    Oct 2, 2017
    Hi. Im trying to save the inital googleplay player id to prevent duplicate scores to multiple accounts. S i thought il just save the id of the inital login into global.playerid and save it along side the rest of saved data. then another variable tempplayerid whih i use to log the current playerid. i then use the tempplayer var and compare it to the global.playerid if they are the same id then il uplad scres to leaderboard.

    bu im having issues in the async social event. data structure index does not exist. helpplease this is a must needed implementation.
    if(ds_exists(async_load, ds_type_map)){
        if(ds_map_find_value(async_load, "id") == achievement_our_info){
            tempplayerid = ds_map_find_value(async_load, "playerid");
            if(global.playerid == -1) {
                global.playerid = tempplayerid;
                safe_ini_write_real("player", "info", global.playerid);

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice