08.05.2012, 16:15
If, by any chance, you are looking for another one using sscanf, here's an example:
Simple enough, I suppose. No use explaining it, it's kinda self explanatory as long as you know the basics of scripting.
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;
}