Making a command seperate
#5

You can't with ZCMD, you'll have to edit it, but that's not really needed. You could do:

pawn Код:
#include <sscanf2>

CMD:command(playerid, params[])
{
    if(IsNumeric(params) && strval(params) == 1)
    {
        // Code here
        return 1;
    }
    return 0;
}

stock IsNumeric(const string[])
{
    return !sscanf(string, "{d}");
}
If you enter /command 2, /command or anything else that isn't /command 1, you'll get the unknown command message. So it's practically like having a command with a space.
Reply


Messages In This Thread
Making a command seperate - by Immortal99 - 15.08.2016, 18:12
Re: Making a command seperate - by burhanjaved - 15.08.2016, 19:29
Re: Making a command seperate - by Immortal99 - 15.08.2016, 20:16
Re: Making a command seperate - by Shinja - 15.08.2016, 20:48
Re: Making a command seperate - by SickAttack - 15.08.2016, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)