OnPlayerCommandPerformed - Read Commands
#3

You forgot the ,,success" parametr in OnPlayerCommandPerformed. This callback should look like this:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    new str[128];
    if(sInfo[ReadCmds] == 1)
    {
        format(str, sizeof(str), "*** %s(ID:%d) : '%s'", GetName(playerid), playerid, cmdtext);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(pInfo[i][Admin] >= 1)
                {
                    SendClientMessage(i, COLOR_GREY, str);
                }
            }
        }
    }
    return 1;
}
@up Damn it, one minut late x_x
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)