11.05.2014, 13:38
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;
}