SA-MP Forums Archive
command problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: command problem (/showthread.php?tid=457133)



command problem - aboa - 09.08.2013

What's the problem with that command
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;
}