19.06.2015, 16:00
I'd personally use something like the one below instead the whole 'option' thing.
pawn Код:
new tmp_name[50], rank;
if (!sscanf(params, "'facname's[50]", tmp_name))
{
// code for "/fedit facname <name>"
}
else if (!sscanf(params, "'rank'is[50]", rank, tmp_name))
{
// code for "/fedit rank <rank> <name>"
}
else .. send usage..