Multi-Function Command Help
#3

pawn Код:
CMD:i(playerid, params[])
{
    new str[8];
    if(GetPVarInt(playerid, "LoggedIn") == 0) SendClientMessage(playerid, -1, "ERROR: You are not logged in.");
    else if(!(2 < strlen(params) < sizeof(str)) || sscanf(params,"s[8]",str)) SendClientMessage(playerid, -1, "Command Usage: /i [use/discard]");
    else if(!strcmp(str, "use"))
    {
        new slot;
        if(sscanf(params, "{s[8]}i", slot)) SendClientMessage(playerid, -1, "Command Usage: /i use [inventory slot]");
        else{
        }
    }
    else if(!strcmp(str, "discard"))
    {

    }
    else
    {
        SendClientMessage(playerid, -1, "Command Usage: /i [use/discard]");
    }
    return 1;
}
Reply


Messages In This Thread
Multi-Function Command Help - by DTV - 27.10.2014, 18:44
Re: Multi-Function Command Help - by DavidBilla - 27.10.2014, 18:55
Re: Multi-Function Command Help - by Jefff - 27.10.2014, 19:00
Re: Multi-Function Command Help - by DTV - 27.10.2014, 19:22
Re: Multi-Function Command Help - by Quickie - 28.10.2014, 01:04
Re: Multi-Function Command Help - by DavidBilla - 28.10.2014, 02:36
Re: Multi-Function Command Help - by Metroplex - 28.10.2014, 03:11

Forum Jump:


Users browsing this thread: 1 Guest(s)