27.07.2011, 18:29
Код:
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.
Код:
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; }