Weird compiling error
#4

Have you changed the "params" thing for this line too? If you keep "params", it'll keep making error. Whole code should be like this:

pawn Код:
dcmd_ac(playerid,params[])
{
    new pname[MAX_PLAYER_NAME];
    new string[128], text[128];
    if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, "USAGE: /ac [Message]");
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(AdminLevel[i] == 1)
        {
            format(string,sizeof string, "[ADMIN CHAT] %s(%d): %s", pname, playerid, text);
            SendClientMessage(i,COLOR_PINK,string);
        }
    }
    return 1;
}
Edited, use this last one.
Reply


Messages In This Thread
Weird compiling error - by _Khaled_ - 24.08.2012, 15:58
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:02
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 16:10
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:14
Re: Weird compiling error - by kbalor - 24.08.2012, 16:16
AW: Weird compiling error - by Mellnik - 24.08.2012, 16:18
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:23
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 20:08
Re: Weird compiling error - by leonardo1434 - 24.08.2012, 21:24
Re: Weird compiling error - by clarencecuzz - 24.08.2012, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)