Multi parameter command question
#3

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..
Reply


Messages In This Thread
Multi parameter command question - by DarkLored - 19.06.2015, 15:16
AW: Multi parameter command question - by Nero_3D - 19.06.2015, 15:51
Re: Multi parameter command question - by Konstantinos - 19.06.2015, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)