Commands are broken
#1

Well, I have got this problem.. When I try to preform a command it - shows me a message: "Server: Unknown command" I have no idea what this is :S I mean.. I am really confused.

Using ZCMD.


Example of command:
pawn Код:
COMMAND:enter(playerid)
{
    CheckEnter(playerid);
    return 1;
}
Код:
[16:08:43] SERVER: Unknown command.
I really have no idea.. need any more stuff - comment below.
Reply
#2

i think that ZCMD IS
CMD:Checkenter
Reply
#3

No don't worry about that..

My command function..
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!PLAYERLIST_authed[playerid]) return SendClientError(playerid, "You are not logged in!");
    if(!success) return SendClientError(playerid, "The command has not been found! Use /commands.");

    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerTemp[i][admincmdspy] == 1)
        {
            format(iStr, sizeof(iStr), "[ CMD ] %s[%d]: %s", PlayerName(playerid), playerid, cmdtext);
            SendClientMessage(i, COLOR_ORANGE, iStr);
        }
    }
    return 1;
}
Reply
#4

Try this:

pawn Код:
COMMAND:enter(playerid, params[])
{
    CheckEnter(playerid);
    return 1;
}
Reply
#5

No, all my commands arn't working.. that's what I mean xDDD my head is like what the fuck.. xD
Reply
#6

Do you have strcmp commands in your script? Because ZCMD doesn't work with strcmp.
Reply
#7

No I ain't using strcmp. I am sick of using ZCMD. Can someone tell me if ZCMD is faster or more efficient than YCMD?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)