Sub command ZCMD
#1

Why I cant type params on this command?
PHP код:
CMD:clan(playeridparams[])
{
    new 
cmd[23];
    if(
sscanf(params"s[23]"cmd)) return SendError(playerid,"/Clan <Action>");
    if(!
strcmp(cmd"Create"true))
    {
        new 
cn[10],lid;
        if(
sscanf(params,"s[15]s[10]u",cmd,cn,lid))return SendClientMessage(playerid,-1,color_red"SYNTAX ERROR: /CreateClan [CLAN_NAME][FOUNDER_ID/NAME]");
        if(!
IsPlayerConnected(lid) || pData[lid][Logged] == false)return SendClientMessage(playerid,-1,color_red"ERROR: !щзчп жд ма озебш");
        if(
pData[lid][pClanID])return SendClientMessage(playerid,-1,color_red"ERROR: !щзчп жд лбш бчмап");
        for(new 
i=1i<MAX_CLANSi++)
        {
            if(
cData[i][cOfficial] == && !strcmp(cn,cData[i][cName],true))return SendClientMessage(playerid,-1,color_red"ERROR: !йщ лбш чмап бщн жд");
            if(
cData[i][cOfficial] == 0)
            {
                
CreateClanData(cn,i,lid);
                
SendFormatToAll(-1,color_lblue"! \"%s\" "color_orange"чмап згщ рфъз бщшъ",cn);
                
SendFormat(lid,-1,color_gray".\"%s\" "color_orange"аъд лтъ оййсг бчмап",cn);
                return 
1;
            }
        }
        return 
1;
    }
    return 
SendClientMessage(playerid,-1,color_red"ERROR: афщшеъ чмап щвеййд");

pls help me
Reply
#2

What do u mean?
Reply
#3

Did you can near the CMD:Clan (playerid, params)
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)