Unknown Command
#4

i converted my command to ZCMD but when i type the command correct the sscanf always says the usage even if its correct.

pawn Код:
CMD:i(playerid,params[])
{
        new itemslot,string[128];
        new var[5];
        if(strcmp(var,"use",true) == 0)
        {
            if(sscanf(params,"i",itemslot))
            {
               SendClientMessage(playerid,-1,"USAGE: /i use (itemslot).");
               return 1;
            }
            if(itemslot == 1)
            {
               itemslot = pInfo[playerid][pInv1];
               if(pInfo[playerid][pInv1] == 995)
               {
                  SendClientMessage(playerid,-1,"The command works");
               }
               return 1;
            }
            return 1;
        }
        return 1;
}
Reply


Messages In This Thread
Unknown Command - by DarkLored - 11.05.2014, 02:42
Re: Unknown Command - by Jstylezzz - 11.05.2014, 08:39
Re: Unknown Command - by DaniceMcHarley - 11.05.2014, 08:44
Re: Unknown Command - by DarkLored - 11.05.2014, 13:38
Re: Unknown Command - by Konstantinos - 11.05.2014, 13:47
Re: Unknown Command - by DarkLored - 11.05.2014, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)