SA-MP Forums Archive
SSCanf Issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SSCanf Issue (/showthread.php?tid=599098)



SSCanf Issue - Rokzlive - 21.01.2016

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?


Re: SSCanf Issue - Sew_Sumi - 21.01.2016

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


Re: SSCanf Issue - Rokzlive - 21.01.2016

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.


Re: SSCanf Issue - Crayder - 21.01.2016

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