Command will execute, but returns INVALID COMMAND!
#2

pawn Код:
if(!strcmp(cmdtext, "/hitlist", true))
    {
        new count = 0;
        SendClientMessage(playerid, COLOR_MSG, "Listing currently placed hits:");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && hit[i] > 0)
            {
                new string[256];
                format(string, 256, "Hit on %s (%i) for $%i", ReturnPlayerName(i), i, hit[i]);
                SendClientMessage(playerid, COLOR_FOUND, string);
                count++;
            }
        }
        if(count == 0)
        {
            SendClientMessage(playerid, COLOR_ERROR, "No hits placed at this time!");
        }
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)