Problem with this cmd
#7

Ok,edited.I got this:

Код:
  if(text[0] == '@')
    {
        if(PlayerInfo[playerid][AdminLevel] > 2)
        {
            if(!strlen(text[2])) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: @<text>");
            SendClientMessage(playerid, COLOR_ORANGE, "HELP: Example: @Hi");
            new sendername[128];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new string[128];
            format(string, sizeof(string), "Admin Chat [%i]%s: %s" ,playerid,sendername, text[2]);
            SendMessageToAdmins(COLOR_GREEN, string, 1);
            return 1;
        }
    else return SendClientMessage(playerid, COLOR_RED, "No.");
    }
The problem is at this line:

SendMessageToAdmins(COLOR_GREEN, string, 1);

And this is the stock i use:

Код:
stock SendMessageToAdmins(COLOR_GREEN, Text[])
{
    for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(PlayerInfo[playerid][AdminLevel] >= 1) SendClientMessage(i, COLOR_GREEN, Text);
    return;
}
Hope you can help me.
Reply


Messages In This Thread
Problem with this cmd - by Face9000 - 16.12.2010, 10:59
Re: Problem with this cmd - by Ash. - 16.12.2010, 11:15
Re: Problem with this cmd - by Face9000 - 16.12.2010, 11:32
Re: Problem with this cmd - by Ash. - 16.12.2010, 11:42
Re: Problem with this cmd - by Ash. - 16.12.2010, 11:45
Re: Problem with this cmd - by Ash. - 16.12.2010, 11:48
Re: Problem with this cmd - by Face9000 - 16.12.2010, 11:57
Re: Problem with this cmd - by veyron - 16.12.2010, 12:12
Re: Problem with this cmd - by Face9000 - 16.12.2010, 12:14
Re: Problem with this cmd - by veyron - 16.12.2010, 12:19

Forum Jump:


Users browsing this thread: 2 Guest(s)