Invalid func or declaration
#1

pawn Код:
CMD:mute(playerid, params[])
{
    #if defined mute
    new targetid;
    new reason[128];
    new str[256];
    new AdminName[MAX_PLAYER_NAME];
    new Target[MAX_PLAYER_NAME];
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You aren't authorized to use this command!");
    if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_GREY, "Usage:/mute (playerid/partofname) (reason)");
    else if(targetid == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[{B4B5B7}System{FF6347}]: {B4B5B7}Player not found!");
    else
    {
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        GetPlayerName(targetid, Target, sizeof(Target));
        format(str, sizeof(str), "[{B4B5B7}Admin{FF6347}]{B4B5B7}'%s has muted {FF6347}[{B4B5B7}Player{FF6347}]{B4B5B7}'%s. {FF6347}Reason; {B4B5B7}%s .", AdminName, targetid, reason);
        SendClientMessageToAll(COLOR_RED, str);
        Info[targetid][isMuted] = 1;
    #endif
    }
    return 1;
}
It says invalid function or declaration @ the return 1;
Reply


Messages In This Thread
Invalid func or declaration - by Sellize - 20.01.2013, 14:16
Re: Invalid func or declaration - by InfiniTy. - 20.01.2013, 14:18
Re: Invalid func or declaration - by DaRk_RaiN - 20.01.2013, 14:18
Re: Invalid func or declaration - by Infinity90 - 20.01.2013, 14:19
Re: Invalid func or declaration - by InfiniTy. - 20.01.2013, 14:20
Re: Invalid func or declaration - by Sellize - 20.01.2013, 14:22
Re: Invalid func or declaration - by Jakku - 20.01.2013, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)