14.03.2009, 16:53
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 :
I'm waiting ur helps..Thanks.
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;
}