/help command.
#6

If, by any chance, you are looking for another one using sscanf, here's an example:

pawn Код:
CMD:help(playerid, params[])
{
    new option;
    if(sscanf(params, "s", option)) return SendClientMessage(playerid, -1, "Usage: /help <account/map>");
   
    if(strcmp(name,"account",false)==0)
    {
        //Account code
    }
    if(strcmp(name,"map",false)==0)
    {
        //map code
    }
    else return SendClientMessage(playerid, -1, "Invalid option!");
    return 1;
}
Simple enough, I suppose. No use explaining it, it's kinda self explanatory as long as you know the basics of scripting.
Reply


Messages In This Thread
/help command. - by iGetty - 08.05.2012, 15:53
Re: /help command. - by HDFord - 08.05.2012, 16:01
Re: /help command. - by iGetty - 08.05.2012, 16:04
Re: /help command. - by doreto - 08.05.2012, 16:06
Re: /help command. - by iGetty - 08.05.2012, 16:13
Re: /help command. - by Kindred - 08.05.2012, 16:15
Re: /help command. - by 2KY - 08.05.2012, 18:04
Re: /help command. - by Slix_ - 08.05.2012, 18:08
Re: /help command. - by Jonny5 - 08.05.2012, 18:12
Re: /help command. - by 2KY - 08.05.2012, 18:14

Forum Jump:


Users browsing this thread: 2 Guest(s)