[HELP] command
#1

Hello I try make command car tune but I don't wan't together command cartune I want seperate car tune if you know what I mean. So I want seperate car and tune

pawn Код:
so it's go like this

CMD:cartune

instead of that I want

CMD:car tune --- but It can'
t go like this
Reply
#2

It's not possible at all, atleast from my experiences.
Reply
#3

This will work, player must type /car tune but if he type /car it says USAGE: /car tune
pawn Код:
CMD:car(playerid, params[])
{
    new text[5];
    if(sscanf(params, "s[5]", text))
    {
        SendClientMessage(playerid, -1, "USAGE: /car tune");
        return 1;
    }
    if(strcmp(text, "tune", true) == 0)
    {
        //Rest of the codes
        return 1;
    }
    return 1;
}
Reply
#4

Not necessary to use sscanf.

pawn Код:
CMD:car(playerid, params[])
{
    if (!isnull(params) && !strcmp(params, "tune", true))
    {
        // ...
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)