[HELP] Call taxi problem.
#1

I have this code from one job FS:

pawn Код:
if(strcmp(cmd, "/calltaxi", true) == 0) {
        new string[256];
        new message[256];
        new playername[256];
        strmid(message, cmdtext, 8, strlen(cmdtext));
        GetPlayerName(playerid, playername, sizeof(playername));
    if(!strlen(message)) {
            SendClientMessage(playerid, COLOR_RED, "Usage: /calltaxi [Location]");
            return 1;
        }
        format(string, sizeof(string), "%s Needs a Taxi at %s", playername,message);
        SendTaxiReadyMessage(COLOR_BLUE,string);
       
        return 1;
    }
But, every unknown command on my server, I get this message:
Код:
Usage: /calltaxi [Location]
What's wrong? o.o
Reply


Messages In This Thread
[HELP] Call taxi problem. - by Hot - 10.05.2009, 13:20
Re: [HELP] Call taxi problem. - by devil614 - 13.05.2009, 01:53

Forum Jump:


Users browsing this thread: 1 Guest(s)