Closed Desuuuu closed 8 years ago
Those clientindex and rate columns in CS:GO are not present in older games e.g. CS:S. You should not group them to make them optional instead and keep the index in the loop the same.
Maybe you could group new columns with existing ones for CSGO (with optional statements), or just match less data, since it's only used for Steam IDs?
An optional non-capturing group works:
/# +([0-9]+) +(?:[0-9]+ +)?"(.+)" +(STEAM_[0-9]:[0-9]:[0-9]+|\[U:[0-9]:[0-9]+\]) +([0-9:]+) +([0-9]+) +([0-9]+) +([a-zA-Z]+) +([0-9.:]+)/
PATTERN_STATUS was outdated (two columns were missing from the pattern), so getprofile was not working