Sscanf2 Error, someone help?
#1

Код:
C:\Users\Desertsoulz_2\Desktop\Windows\gamemodes\DesertsoulzScript.pwn(2346) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Errors.
I get this error on this code...

Код:
CMD:fcreate(playerid, params)
{
	if(Player[playerid][pAdminLevel] >= 3)
	{
		new
			FacID,
			FacType;
		if(sscanf(params, "dd", FacID, FacType)) // This line gets the error.
		{
			SendClientMessage(playerid, -1, ""#YELLOW"[Server]: /fcreate [FacID] [FacType]");
		} else {
			if(Faction[FacID][fEnabled] == 1 || Faction[FacID][fGameID] == 0)
			{
				SendClientMessage(playerid, -1, ""#YELLOW"[Server]["#RED"Error!"#YELLOW"]: This Faction ID is already in use!");
			} else {
				Faction[FacID][fEnabled] = 1;
				Faction[FacID][fType] = FacType;

				LoadFactionEx(FacID);
				SaveFaction(FacID);

				SendClientMessage(playerid, -1, ""#YELLOW"[Server]: You have created a new faction!");
			}
		}
	}
	return 1;
}
And I do not know what I did wrong... Can someone point out the problem?
Reply


Messages In This Thread
Sscanf2 Error, someone help? - by Desertsoulz - 27.07.2011, 18:29
Re: Sscanf2 Error, someone help? - by Burridge - 27.07.2011, 18:30
Re: Sscanf2 Error, someone help? - by Calgon - 27.07.2011, 18:30
Re: Sscanf2 Error, someone help? - by Desertsoulz - 27.07.2011, 18:36

Forum Jump:


Users browsing this thread: 4 Guest(s)