CMD Error
#7

By adding these lines, you force the cmd to accept only 1 variable, the name string:
pawn Код:
if(sscanf(params, "z", name))
        {
            SendClientMessage(playerid, WHITE, "SYNTAX: /taxi [message of the day]");
        }
You have to use only once the sscanf function like this:
pawn Код:
if(sscanf(params, "s[128]u", name, id))
{
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /taxi check [playerid]");
    return 1;
}
EDIT:

P.S.: I have also tried to make a command having a different output when I enter 1 input and another output if i enter 2 inputs, but failed.
Reply


Messages In This Thread
CMD Error - by UnAngel - 18.04.2013, 17:17
Re: CMD Error - by Necip - 18.04.2013, 17:22
Re: CMD Error - by UnAngel - 18.04.2013, 17:30
Re: CMD Error - by UnAngel - 19.04.2013, 10:01
Re: CMD Error - by HurtLocker - 19.04.2013, 10:05
Re: CMD Error - by UnAngel - 19.04.2013, 10:12
Re: CMD Error - by HurtLocker - 19.04.2013, 10:17
Re: CMD Error - by UnAngel - 19.04.2013, 16:36
Re: CMD Error - by Almoz - 19.04.2013, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)