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


Messages In This Thread
SSCanf Issue - by Rokzlive - 21.01.2016, 00:08
Re: SSCanf Issue - by Sew_Sumi - 21.01.2016, 01:02
Re: SSCanf Issue - by Rokzlive - 21.01.2016, 01:23
Re: SSCanf Issue - by Crayder - 21.01.2016, 02:38

Forum Jump:


Users browsing this thread: 1 Guest(s)