22.06.2013, 22:51
Hello,
i need help about command, when i type /sellitems boxer/knife 0 i dont have boxer/knife only Message "Nepoznata komanda!"
i need help about command, when i type /sellitems boxer/knife 0 i dont have boxer/knife only Message "Nepoznata komanda!"
Код:
CMD:sellitems(playerid, params[]) { new s[128]; new id; new boxer; new knife; if(PlayerInfo[playerid][pPosao] == 1) { if(sscanf(params,"s[128]",s)) { SCM(playerid,SVJETLOPLAVA,"KORISTI: {FFFFFF}/sellitems [Opcija]"); SCM(playerid,-1,"OPCIJE: boxer - knife"); return 1; } if(!strcmp(s, "boxer", false)) { if(sscanf(params,"du",boxer,id)) return SCM(playerid,SVJETLOPLAVA,"KORISTI:{FFFFFF} /sellitems [Boxer/Knife] [ID]"); GivePlayerWeapon(id, 1, 1); } else if(!strcmp(s,"knife", false)) { if(sscanf(params,"du",knife,id)) return SCM(playerid,SVJETLOPLAVA,"KORISTI:{FFFFFF} /sellitems [Boxer/Knife] [ID]"); GivePlayerWeapon(id, 22, 22); } else { SCM(playerid,RED,"Nepoznata komanda!"); } } return 1; }