sscanf help
#1

I start server and this comes up

Quote:

[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.

100 times

What is it i updated sscanf and everything and still does it

Please Help

Skype : Mario_Gotti
MSN: Killer6284@hotmail.com

Or pm here
Reply
#2

show your script..
Reply
#3

its a full game mode :S
Reply
#4

add me on skype and ill send u the codes i think it be alot for on here :S


Thakns

mario_gotti

Please leave skype name here my skype sometimes glitches so ill add you to
Reply
#5

I don't really like going in against the author of the plugin but, isn't this caused by not specifying a string length (one of the major causes?)
Reply
#6

can ya help me fix it?
Reply
#7

Post one of your sscanf lines to see if that is really the problem. It would be stupid to give a solution for a problem that does not exist.
Reply
#8

Here you go
Quote:

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);
}

Reply
#9

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
I never said your code was wrong nor that there is a problem in sscanf. What I was implying in that post was that the problem could be that HE didn't specify the length parameter as I thought that I had seen that error somewhere before - yet we can rule that out -.
Reply
#10

I tryed to upload to paste bin it does not upload to big
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)