SendClientMessage won't work.
#1

Hey guys, I've got a problem with this command, when I send the report I only see: Your report message has been sent even if I'm admin I can't see the Report Message.

pawn Код:
CMD:report(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME], string[128];
    if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SYNTAX]: /report [Message Here]");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    strreplace(sendername, '_', ' ');
    SendClientMessage(playerid, COLOR_GOLD, "Your report message has been sent to all the online Administrators.");
    if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1)
    {
    format(string, sizeof(string), "Report Message from: %s: %s", sendername, params);
    SendClientMessageToAll(COLOR_GOLD, string);
    }
    return 1;
}
Reply


Messages In This Thread
SendClientMessage won't work. - by Gooday - 17.08.2012, 10:06
Re: SendClientMessage won't work. - by FalconX - 17.08.2012, 10:12
Re: SendClientMessage won't work. - by im - 17.08.2012, 10:13
Re: SendClientMessage won't work. - by Dan. - 17.08.2012, 10:14
Re: SendClientMessage won't work. - by Gooday - 17.08.2012, 10:24
Re: SendClientMessage won't work. - by Dan. - 17.08.2012, 10:28
Re: SendClientMessage won't work. - by JaKe Elite - 17.08.2012, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)