/report help
#2

You can't use strcmp & zcmd at the same time, you need to use one of them, however I suggest zcmd & sscanf.

pawn Код:
COMMAND:report(playerid, params[])
{
    new string[128], pID, reporter[MAX_PLAYER_NAME], reported[MAX_PLAYER_NAME];
    if(sscanf(params, "us[128]", pID, params[0])) return SendClientMessage(playerid, -1, "Usage: /report <playerid/playername> <reason>");
    if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "This player not connected");
    GetPlayerName(playerid, reporter, sizeof(reporter));
    GetPlayerName(pID, reported, sizeof(reported));
    format(string, sizeof(string), "%s reports %s for: %s",reporter, reported, params[2]);
    WhoToSend?Admins?(-1, string); // Edit this
    return 1;
}
Reply


Messages In This Thread
/report help - by Force_ - 20.04.2011, 16:45
Re: /report help - by xir - 20.04.2011, 16:55
Re: /report help - by Force_ - 20.04.2011, 17:03
Re: /report help - by int3s0 - 20.04.2011, 17:17
Re: /report help - by Force_ - 20.04.2011, 17:28
Re: /report help - by xir - 20.04.2011, 17:34
Re: /report help - by Force_ - 20.04.2011, 17:46
Re: /report help - by Force_ - 20.04.2011, 18:31
Re: /report help - by xir - 20.04.2011, 18:40
Re: /report help - by Rivera - 20.04.2011, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)