SSCanf Issue
#1

Im having an odd error.

I have included sscanf 2 in my script and it is not defined anywhere else in the script.

It compiles fine until i add a command that uses sscanf.

I get the following error:

C:\Users\NickolasCShaffer\Desktop\SAMP\ServerDev\p awno\include\sscanf2.inc(39) : fatal error 111: user error: sscanf (possibly the PAWN version) already defined.

The following is the only command thus far in my new script that uses sscanf.

pawn Код:
CMD:ban(playerid,params[])
{
    if(!PlayerData[playerid][Admin]) return 0;
    new String[32],tplayerid,years,months,days,hours,minutes;
    if(sscanf(params,"uiiiiis[32]",tplayerid,years,months,days,hours,minutes,String) return SendSyntaxMessage(playerid,"/ban [ID/Name] [Years] [Months] [Days] [Hours] [Minutes] [Reason]");
    BanPlayer(playerid,PlayerName(tplayerid),years, months, days, hours, minutes,String,PlayerName(playerid));
    return 1;
}
If i comment out the line using sscanf, it compiles fine. What could cause this?
Reply
#2

It says it in the error... "fatal error 111: user error: sscanf (possibly the PAWN version) already defined."

"sscanf (possibly the PAWN version) already defined."

"sscanf already defined."


You've got it twice somehow, or more times.


And if you search "pawn fatal error 111" in ****** it comes back to this thread

https://sampforum.blast.hk/showthread.php?tid=407711
Reply
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
It says it in the error... "fatal error 111: user error: sscanf (possibly the PAWN version) already defined."

"sscanf (possibly the PAWN version) already defined."

"sscanf already defined."


You've got it twice somehow, or more times.


And if you search "pawn fatal error 111" in ****** it comes back to this thread

https://sampforum.blast.hk/showthread.php?tid=407711
It is not defined anywhere in the script or in the other includes. I cant explain this error.
Reply
#4

Sscanf is clearly defined before you have included it, so which includes are you using before sscanf?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)