Jump to content
  • 0

Comanda /cinvite


Smokie

Question

CMD:cinvite(playerid, params[])
{
    if(PlayerInfo[playerid][pCRank] < 6) return SendClientMessage(playerid, COLOR_WHITE,"Doar playerii cu rank 6 si 7 pot invita membri in clan.");
    new userID,giveplayer[25],sendername[25],szMessage[119];
    if(sscanf(params, "u", userID)) return SendClientMessage(playerid, COLOR_WHITE,"{AB0000}Usage: {FFFFFF}/cinvite <id>");
    {
        if(GetClanMembers(PlayerInfo[playerid][pClan]) >= ClanInfo[PlayerInfo[playerid][pClan]][cClanSlots]) return SendClientMessage(playerid, COLOR_WHITE,"You have reached maximum members.");
        if(userID == playerid) return SendClientMessage(playerid, COLOR_WHITE,"Nu poti sa te inviti singur in clan.");
        if(ClanInfo[PlayerInfo[playerid][pClan]][cClanActive] < 1) return SendClientMessage(playerid, COLOR_WHITE,"Nu poti invita membri deoarece clanul a expirat (pentru prelungire intra pe panel).");
        if(IsPlayerConnected(userID))
        {
            if(PlayerInfo[userID][pClan] == 0)
            {
                GetPlayerName(userID,giveplayer,sizeof(giveplayer));
                format(szMessage, sizeof(szMessage), "You have invited %s to join your clan.", giveplayer);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);

                GetPlayerName(playerid,sendername,sizeof(sendername));
                format(szMessage, sizeof(szMessage), "%s te-a invitat in clanul %s. Foloseste /accept cinvite %d pentru a accepta.", sendername, ClanInfo[PlayerInfo[playerid][pClan]][cClanName], playerid);
                SendClientMessage(userID, COLOR_BLUE, "Invitatie noua in clan:");
                SendClientMessage(userID, COLOR_BLUE, szMessage);

                SetPVarInt(userID, "cinvID", PlayerInfo[playerid][pClan]);
                SetPVarInt(userID, "cinvIDD", playerid);
            }
        }
    }
    return 1;
}

Este o eroare.Atunci cand scriu /cinvite mereu scrie You have reached maximum members.Va rog ajutati ma.Folosesc gm bigzone

Edited by Smokie
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

if(GetClanMembers(PlayerInfo[playerid][pClan]) >= ClanInfo[PlayerInfo[playerid][pClan]][cClanSlots]) return SendClientMessage(playerid, COLOR_WHITE,"You have reached maximum members.");

 

verifica cclandslots sau vezi daca , cand creezi un clan iti da sloturi sau ai doar 1 (lider) 

Ares4  =(

 

 

Link to comment
Share on other sites

  • 0

Uita-te la limita de la max members in clan , in caz contrar mareste-o si vezi daca iti merge !

 

vldgIri.png

YouTube : Click Redirect Channel

Discord : Arabu#9330

Canal Discord : Click To Join

Facebook : Click Facebook

Instagram : Click Instagram

Skype : Mita.Official

Respectă și vei fi respectat !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.