[Help] Unknown command -
SpaMaster - 03.08.2012
I solved all errors and warnings, but, when I use any command, It pulling Server: Unknown command. Any help ?
And sorry for bad English
Re: [Help] Unknown command -
Sascha - 03.08.2012
do you have any filterscript running?
if so, check it for the "OnPlayerCommand" callback and the "return" at the end (set it to 0)
Re: [Help] Unknown command -
SpaMaster - 03.08.2012
Quote:
Originally Posted by Sascha
do you have any filterscript running?
if so, check it for the "OnPlayerCommand" callback and the "return" at the end (set it to 0)
|
I don't have any FilterScript.
Re: [Help] Unknown command -
Devilxz97 - 03.08.2012
check your script mybe some of your script using ZCMD + strcmp
ZCMD + strcmp = not works
Re: [Help] Unknown command -
SpaMaster - 03.08.2012
Quote:
Originally Posted by Devilxz97
check your script mybe some of your script using ZCMD + strcmp
ZCMD + strcmp = not works
|
I using YCMD
Re: [Help] Unknown command -
[MM]RoXoR[FS] - 03.08.2012
Show your onplayercommandText and any one command.
Re: [Help] Unknown command -
SpaMaster - 03.08.2012
Quote:
Originally Posted by [MM]RoXoR[FS]
Show your onplayercommandText and any one command.
|
All commands are outside of CallBack.
Here is OnPlayerCommandText:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
And here is, for example, /report command:
pawn Код:
YCMD:report(playerid, params[], help)
{
#pragma unused help
new string[128], text[48];
if(sscanf(params, "s[48]", text)) return SCM(playerid, COLOR_RED, "Koriљtenje: /report [Text]");
foreach(Player, i) {
if(P_Data[i][pAdmin] > 0) {
format(string,sizeof(string),""COL_BLUE"[REPORT] Igrač %s: "COL_WHITE"%s ",GetName(playerid),text);
SCM(i,-1,string);
AskLog(playerid,text);} }
return 1;
}
Respuesta: [Help] Unknown command -
HarlemSAMP - 03.08.2012
Wich commands doesn't work? do you have a problem with all commands or just a few? if the problem are few commands port them here.
Re: Respuesta: [Help] Unknown command -
SpaMaster - 03.08.2012
Quote:
Originally Posted by HarlemSAMP
Wich commands doesn't work? do you have a problem with all commands or just a few? if the problem are few commands port them here.
|
All commands.
Re: [Help] Unknown command -
Ranama - 04.08.2012
this is how I have it
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;//use ths to make the script think that your command worked even if you don't have any commands
}
//then use this to set whatever message you want to send if they whrite wrong message
public OnPlayerCommandPerformed(playerid, cmdtext[], success){
if(success == 0) return SendClientMessage(playerid, COLOR_GRAY2, "SERVER: Unknown command, use /help for further help.");//this is my command, but feel free to edit it as you want :)
}
Hope that helped you