Problem with errors [+REP]
#3

Quote:

error 017: undefined symbol "cmd_fmute"

That's because you dont have ZCMD included!

Download one and put it into your pawno/includes and then add this to the top of your script:

pawn Код:
#include <zcmd>
Better indentation and some fixes:

pawn Код:
CMD:fmute(playerid, params[])
{
    new gamer;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, red, "Access Denied.");
    if(sscanf(params, "u", gamer)) return SendClientMessage(playerid, red, "Използвай: \"/mute <Играч>");
    if(gamer == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "Играча на е намерен");
    SaveInfo[gamer][fMuted] = 1;
    return 1;
}

CMD:funmute(playerid, params[])
{
    new gamer;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, red, "Access Denied.");
    if(sscanf(params, "u", gamer)) return SendClientMessage(playerid, red, "Използвай: \"/unmute <Играч>");
    if(gamer == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "Играча на е намерен");
    SaveInfo[gamer][fMuted] = 0;
    return 1;
}
By the way put your ZCMD commands at the bottom of your script. Not under OnPlayerCommandText or something.
Reply


Messages In This Thread
Problem with errors [+REP] - by Ruffian - 31.08.2012, 14:08
Re: Problem with errors [+REP] - by Dan. - 31.08.2012, 14:11
Re: Problem with errors [+REP] - by RedJohn - 31.08.2012, 14:14
Re: Problem with errors [+REP] - by Ruffian - 31.08.2012, 14:44
Re: Problem with errors [+REP] - by Ruffian - 31.08.2012, 15:55
Re: Problem with errors [+REP] - by RedJohn - 31.08.2012, 16:07
Re: Problem with errors [+REP] - by Ruffian - 31.08.2012, 17:33
Re: Problem with errors [+REP] - by RedJohn - 31.08.2012, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)