Unknown command
#1

Why does it says "Server unknown command" ?...

Command work if I don't insert player's ID or Name so I recieve error message but when I enter ID or Name it says "Server Unknown Command" Why?

pawn Код:
if (strcmp("/csb", cmdtext, true, 10) == 0) // Check seatbelt
    {
        new tmp[256];
        new giveplayerid;
        tmp = strtok(cmdtext, idx);
        giveplayerid = ReturnUser(tmp);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "{FF6A22}INFO: {FFFFFF}/csb [playerid/PartOfName]");
            return 1;
        }
        if(SeatBelt[giveplayerid] == 0)
        {
            SendClientMessage(playerid, -1, "{00FF00}INFO: {FFFFFF}Players is buckled up");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "{FF6A22}INFO: {FFFFFF}Player's seatbelt isn't buckled up.");
        }
        return 1;
    }
Reply


Messages In This Thread
Unknown command - by Lajko1 - 27.03.2014, 12:19
Re: Unknown command - by Dokins - 27.03.2014, 12:32
Re: Unknown command - by Lajko1 - 27.03.2014, 12:40
Re: Unknown command - by Lajko1 - 27.03.2014, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)