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

