SA-MP Forums Archive
/report (Command Unknown, Short command) Why? - 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: /report (Command Unknown, Short command) Why? (/showthread.php?tid=302327)



/report (Command Unknown, Short command) Why? - Dokins - 08.12.2011

This is one of few commands not working, could someone explain why?

pawn Code:
CMD:report(playerid, params[])
{
    if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
    if(Report[playerid] == 1) return SendClientMessage(playerid, COLOUR_GREY, "You have already submitted a report, Please wait until it has been processed.");
    if(strlen(params) >= 64)return SendClientMessage(playerid, COLOUR_GREY, "Your report message was too long. Maximum - 64 Characters.");
    if(AdminCount < 1) return SendClientMessage(playerid, COLOUR_GREY, "There are no admins online that can accept your report.");


    SendClientMessage(playerid, COLOUR_ORANGE, "Your report has been submitted to all available admins.");
    strcpy(ReportMessage[playerid],params, 64);
    Report[playerid] = 1;
    new string[128];
    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;
}



Re: /report (Command Unknown, Short command) Why? - T0pAz - 08.12.2011

Does other commands work?


Re: /report (Command Unknown, Short command) Why? - Dokins - 08.12.2011

Yes, just /reports doesnt and /report and /housestore.


Re: /report (Command Unknown, Short command) Why? - T0pAz - 08.12.2011

Quote:
Originally Posted by Dokins
View Post
Yes, just /reports doesnt and /report and /housestore.
And have you used only zcmd or other command processor?


Re: /report (Command Unknown, Short command) Why? - Dokins - 08.12.2011

ZCMD.


Re: /report (Command Unknown, Short command) Why? - T0pAz - 08.12.2011

The code your provided on the post is alright. It's a return problem.