18.07.2012, 13:54
try this, I am not sure though...
pawn Код:
CMD:inv(playerid, params[])
{
new option[20];
if(isnull(params))
{
return cmd_inventory(playerid, params);
}
if(strcmp(option, "use", true) == 0) // <-- This edited
{
new invid;
if(sscanf(params, "i", invid))
{
if (invid == 1)
{
SendClientMessage(playerid, USAGE, "1 Working.");
}
if (invid == 2)
{
SendClientMessage(playerid, USAGE, "2 Working.");
}
}
return 1;
}
if(!strcmp(option, "usetool", true))
{
return 1;
}
return 1;
}

