Commands are broken - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Commands are broken (
/showthread.php?tid=485232)
Commands are broken -
Brandon_More - 03.01.2014
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.
Re: Commands are broken -
[SU]Spartan - 03.01.2014
i think that ZCMD IS
CMD:Checkenter
Re: Commands are broken -
Brandon_More - 03.01.2014
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;
}
Re: Commands are broken -
roar - 03.01.2014
Try this:
pawn Код:
COMMAND:enter(playerid, params[])
{
CheckEnter(playerid);
return 1;
}
Re: Commands are broken -
Brandon_More - 03.01.2014
No, all my commands arn't working.. that's what I mean xDDD my head is like what the fuck.. xD
Re: Commands are broken -
Blast3r - 03.01.2014
Do you have strcmp commands in your script? Because ZCMD doesn't work with strcmp.
Re: Commands are broken -
Brandon_More - 04.01.2014
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?