09.08.2013, 10:48
What's the problem with that command
it's showen to me that it not exist

it's showen to me that it not exist
pawn Код:
CMD:setfc(playerid, params[])
{
new fam, amount, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
if(sscanf(params, "ui", fam, amount)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /setfc [familyid] [colorid(1-10)]");
if(amount < 1 || amount > 10) return SendClientMessage(playerid, COLOR_GREY, "Families colors are between 1 and 10.");
FamInfo[fam][fColor] = amount;
format(string, sizeof(string), "AdmWarn: %s has change a family color.", RPN(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
Log("logs/sethparmor.log", string);
return 1;
}