Command problem
#1

What's the problem with this ?
if any one can send me an example of cmd like that thatwill help me to fix my errors thnks
Код:
    if(strcmp(cmd, "/craft", true) == 0)
    {
        new choice[32];
        if(strcmp(strtok, "s[32]", choice))
        {
            SendClientMessage(playerid, DENN, "[SERVER] Usage: /craft [bate/knife]");
            return 1;
        }
        if(strcmp(choice, "bate", true) == 0)
        {
//blabla
        return 1;
        }
        else if(strcmp(choice, "knife", true) == 0)
        {
//bla bla
        return 1;
        }
        return 1;
    }
Reply


Messages In This Thread
Command problem - by Amine_Mejrhirrou - 25.11.2012, 17:43
Re: Command problem - by Nordic - 25.11.2012, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)