Report command
#1

Hey all. What's wrong with my report command?
It spams the chat with: Report Sended

pawn Code:
COMMAND:report(playerid,params[])
{
        new report[100];
        if(sscanf(params,"s",report)) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/report [reason]");
        for(new admins;PlayerInfo[admins][pAdminLevel] < MAX_PLAYERS; admins++)
    {
        format(String,sizeof(String),"Report From %s REPORT:{6EF83C}%s",Name[playerid],report);
        SendClientMessage(admins,COLOR_ORANGE,String);
        SendClientMessage(playerid,COLOR_ORANGE,"Report Sended!");
    }
   
        return 1;
}
Reply


Messages In This Thread
Report command - by bartje01 - 11.06.2011, 21:53
Re: Report command - by arturo clark - 11.06.2011, 21:58
Re: Report command - by Crimson - 11.06.2011, 22:12
Re: Report command - by bartje01 - 11.06.2011, 22:12
Re: Report command - by Markx - 11.06.2011, 22:17
Re: Report command - by bartje01 - 11.06.2011, 22:19

Forum Jump:


Users browsing this thread: 2 Guest(s)