"Unknown Command" Error for Known Command..
#1

Hello guys!..I've problem with my new mode.

I made a "/clanname1 [1st clan's name]" command.It is for select 1st clan's name for clan matches.But in game , this command gives the "Unknown Command" error.

Here the codes :

pawn Код:
if(strcmp(cmdtext, "/clanname1", true) == 0)
    {
              tmp = strtok(cmdtext, idx);
  if(strlen(tmp) > 7)
     SendClientMessage(playerid, 0xFF0000AA, "You can set <7 character for clan name.");
 else if(!strlen(tmp)) SendClientMessage(playerid, 0xFF0000AA, "USAGE: /clanname1 [1st clan's name]");
else    if(clannames[playerid]==false) SendClientMessage(playerid, 0xFF0000AA, "ERROR: You must select 'Clan Names' from clan match menu.");
else   if(strlen(tmp) && strlen(tmp) < 3 && clannames[playerid]==true && IsPlayerAdmin(playerid))
    {
    format(string, sizeof(string), "%s",tmp);
        SendClientMessage(playerid,0x554466AA,"Now..Write The Second Clan's Name.");
        clannames2[playerid] = true;
        clannamesselect = string;
        clannames[playerid]=false;
}
return 1;
        }
I'm waiting ur helps..Thanks.
Reply


Messages In This Thread
"Unknown Command" Error for Known Command.. - by Myr4c3 - 14.03.2009, 16:53
Re: "Unknown Command" Error for Known Command.. - by Weirdosport - 14.03.2009, 16:58
Re: "Unknown Command" Error for Known Command.. - by Myr4c3 - 14.03.2009, 19:18
Re: "Unknown Command" Error for Known Command.. - by maij - 14.03.2009, 20:23

Forum Jump:


Users browsing this thread: 2 Guest(s)