1. Hello!
    In my plugin when players login it seems like randomly some players steam id is not found, and I get back "74569823145687412" is undefined or whatever their id is. (that one is fake)

    Not everyone but it seems like it happens just enough to be annoying.

    The console looks like this:
    [​IMG]

    On line 257 is when I make the call to my ranks and titles function:
    Code:
    this.setRankOrTitle(steamID, TitlesData.PlayerData[steamID].Kills, player);
    
    Seems like it makes it through the entire data setup process but when it does the call, it throws this error.
    Code:
    TitlesData.PlayerData[steamID] = TitlesData.PlayerData[steamID] || {};
            TitlesData.PlayerData[steamID].PlayerID = TitlesData.PlayerData[steamID].PlayerID || steamID;
            TitlesData.PlayerData[steamID].RealName = TitlesData.PlayerData[steamID].RealName || this.getName(steamID, player);
            TitlesData.PlayerData[steamID].Title = TitlesData.PlayerData[steamID].Title || "";
            TitlesData.PlayerData[steamID].Rank = TitlesData.PlayerData[steamID].Rank || 0;
            TitlesData.PlayerData[steamID].Kills = TitlesData.PlayerData[steamID].Kills || 0;
            TitlesData.PlayerData[steamID].KDR = TitlesData.PlayerData[steamID].KDR || 0;
            TitlesData.PlayerData[steamID].Deaths = TitlesData.PlayerData[steamID].Deaths || 0;
            TitlesData.PlayerData[steamID].Karma = TitlesData.PlayerData[steamID].Karma || 0;
            TitlesData.PlayerData[steamID].isAdmin = TitlesData.PlayerData[steamID].isAdmin || (authLvl >= 2) || false;
            TitlesData.PlayerData[steamID].hidden = TitlesData.PlayerData[steamID].hidden || false;
            this.setRankOrTitle(steamID, TitlesData.PlayerData[steamID].Kills, player);
    
    I pull data in this manner the basic setup but like I said certain users come back with their id as undefined still. Is caused by multiple logins?

    UPDATE: I do believe this error is a groupdata error. Simply because my plugin loads before groups does so it may not have the players ID in the group data yet. which would cause this error on group servers. I am going to switch around my plugin name to have it load after groups to see if thats the case.

    UPDATE2: Still get the error slightly every so often.
     
    Last edited by a moderator: Mar 9, 2015