21.01.2016, 00:08
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.
If i comment out the line using sscanf, it compiles fine. What could cause this?
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;
}