shqke / imatchext

Matchmaking Extension Interface [L4D/2]
GNU General Public License v3.0
9 stars 2 forks source link

[BUG] Format indexing #2

Closed Natanel-Shitrit closed 2 years ago

Natanel-Shitrit commented 2 years ago

With the current extension, the following:

"Cstrike_TitlesTXT_Votes"    "%s1 :  %s2 (%s3 votes)"

Will be parsed to:

"Cstrike_TitlesTXT_Votes"
{
    "#format"   "{1:s},{:s},{:s}"
    "en"        "{1} :  {2} ({3} votes)"
}

The problem lies in: https://github.com/shqke/imatchext/blob/9ba8d84d30f27d261239ecb1d0d4398d055399c6/extension/phrasesgen.cpp#L89

The index is not printed out.