PUBGSharp icon indicating copy to clipboard operation
PUBGSharp copied to clipboard

rank value

Open franjodolo opened this issue 7 years ago • 2 comments

Hi, I am beginner and i'm sorry if question is stupid, but i cant find rank stats nowhere. I supposed it will be under Stats.Rank, but rank does not exist. Where i can find rank stats? ty

franjodolo avatar Oct 01 '17 20:10 franjodolo

Assuming you mean rating rank, then just do something like this:

var rating = stats.Stats.Find(x => x.Mode == Mode.Solo && x.Region == Region.EU && x.Season == Seasons.EASeason2).Stats.Find(x => x.Stat == Stats.Rating);
Console.WriteLine($"{rating.Rank}");

I can't test it right now because the servers seem to be down but something like that should work.

eklypss avatar Oct 01 '17 20:10 eklypss

wow, thank you for fast replay ill try tomorrow, seems servers are, whole day, down

franjodolo avatar Oct 01 '17 20:10 franjodolo