command ?
#1

pawn Код:
if (strcmp("/cmd", cmdtext, true) == 0)
    {
                new var;
            new tmp[256];
            tmp = strtok(cmdtext, idx);
              var = strval(tmp);
            if(!strlen(tmp) || (var < 0 || var > 1))
            {
                SendClientMessage(playerid,COLOR_WHITE,"USAGE: /cmd [1/0]");
                return 1;
            }
            else if(housestuff == 0)
            {
                  print("zero");
                return 1;
            }
            else if(housestuff == 1)
            {
                print("one");
                return 1;
            }
    }


If i type /cmd <something> - nothing happens.
If i type /cmd - gives me tutorial how to write.

Any Ideas..?
Reply


Messages In This Thread
command ? - by luxeon - 17.02.2009, 16:08
Re: command ? - by luxeon - 17.02.2009, 19:00
Re: command ? - by luxeon - 18.02.2009, 13:19
Re: command ? - by DaRkDeViiL - 19.02.2009, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)