[27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. [27/09/2012 14:29:29] sscanf warning: Format specifier does not match parameter count. |
sscanf(szFileStr, "p<|>is[42]s[65]s[24]iiifffiiis[20]s[20]s[20]s[20]s[20]s[20]iiiiiiiiiiiiiiiiiiiiii", FamilyInfo[iIndex][FamilyTaken], FamilyInfo[iIndex][FamilyName], FamilyInfo[iIndex][FamilyMOTD], FamilyInfo[iIndex][FamilyLeader], FamilyInfo[iIndex][FamilyBank], FamilyInfo[iIndex][FamilyCash], FamilyInfo[iIndex][FamilyUSafe], FamilyInfo[iIndex][FamilySafe][0], FamilyInfo[iIndex][FamilySafe][1], FamilyInfo[iIndex][FamilySafe][2], FamilyInfo[iIndex][FamilyPot], FamilyInfo[iIndex][FamilyCrack], FamilyInfo[iIndex][FamilyMats], FamilyInfo[iIndex][FamilyRank1], FamilyInfo[iIndex][FamilyRank2], FamilyInfo[iIndex][FamilyRank3], FamilyInfo[iIndex][FamilyRank4], FamilyInfo[iIndex][FamilyRank5], FamilyInfo[iIndex][FamilyRank6], FamilyInfo[iIndex][FamilyMembers], FamilyInfo[iIndex][FamilyMaxSkins], FamilyInfo[iIndex][FamilySkins][0], FamilyInfo[iIndex][FamilySkins][1], FamilyInfo[iIndex][FamilySkins][2], FamilyInfo[iIndex][FamilySkins][3], FamilyInfo[iIndex][FamilySkins][4], FamilyInfo[iIndex][FamilySkins][5], FamilyInfo[iIndex][FamilySkins][6], FamilyInfo[iIndex][FamilySkins][7], FamilyInfo[iIndex][FamilyColor], FamilyInfo[iIndex][FamilyTurfTokens], FamilyInfo[iIndex][FamilyGuns][0], FamilyInfo[iIndex][FamilyGuns][1], FamilyInfo[iIndex][FamilyGuns][2], FamilyInfo[iIndex][FamilyGuns][3], FamilyInfo[iIndex][FamilyGuns][4], FamilyInfo[iIndex][FamilyGuns][5], FamilyInfo[iIndex][FamilyGuns][6], FamilyInfo[iIndex][FamilyGuns][7], FamilyInfo[iIndex][FamilyGuns][8], FamilyInfo[iIndex][FamilyGuns][9] ); ++iIndex; } return fclose(iFileHandle); } |
It isn't, but that would still be a problem in your mode, not in sscanf. If you need a length and don't add one, then your code is wrong, not mine.
And if the code is too long to go here, link to it on pastebin. |