Command Not Recognized.....?
#2

Thanks for that, I just don't know where to place them, can I ask you to have a look at this and tell me why it wont work? It's a very short command, and the fact that it doesnt work confuses me.

pawn Код:
CMD:report(playerid, params[])
{
    if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
    new giveplayerid, string[128];
    if(sscanf(params, "us[64]",giveplayerid, string)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /report [playerid] [message]");
    if(Report[playerid] == 1) return SendClientMessage(playerid, COLOUR_GREY, "You have already submitted a report, Please wait until it has been processed.");


    SendClientMessage(playerid, COLOUR_ORANGE, "Your report has been submitted to all available admins.");
    strcpy(ReportMessage[playerid],params, 64);
    Report[playerid] = 1;
    format(string, sizeof(string), "Report from %s (ID %d), Details: %s, to manage this report, use /reports", GetNameEx(playerid), playerid, params);
    AdminMessage(string, COLOUR_YELLOW);
    return 1;
}
Reply


Messages In This Thread
Command Not Recognized.....? - by Dokins - 08.12.2011, 12:28
Re: Command Not Recognized.....? - by Dokins - 08.12.2011, 13:22
Re: Command Not Recognized.....? - by Speed - 08.12.2011, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)