SA-MP Forums Archive
"The command /free does not exist!"? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: "The command /free does not exist!"? (/showthread.php?tid=283928)



"The command /free does not exist!"? - Xx_OutLawZ_xX - 17.09.2011

Hello,
As use can see, How can i make this? I want it to have the command that the player types into the error message.
Another Example: The command /help does not exist!

Thanks


Re: "The command /free does not exist!"? - =WoR=Varth - 17.09.2011

Using zcmd?


Re: "The command /free does not exist!"? - Vince - 17.09.2011

https://sampforum.blast.hk/showthread.php?tid=283306
What command processor are you using?


Re: "The command /free does not exist!"? - Xx_OutLawZ_xX - 17.09.2011

Oh yeah, sorry i forgot to mention that.
Im using zcmd.


Re: "The command /free does not exist!"? - wouter0100 - 17.09.2011

pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new string[70];
        format(string, sizeof(string), "* Command %s dont exits, Type /help for all your commands.", cmdtext);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}



Re: "The command /free does not exist!"? - =WoR=Varth - 17.09.2011

pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        format(cmdtext,128,"* Command %s dont exits, Type /help for all your commands.",cmdtext);
        SendClientMessage(playerid,-1,cmdtext);
    }
    return 1;
}



Re: "The command /free does not exist!"? - ServerScripter - 17.09.2011

Thanx Resolved


Re: "The command /free does not exist!"? - Xx_OutLawZ_xX - 18.09.2011

Thanks guys.