Whats wrong with this ?
#1

I'm pretty sure I messed up on this... Anyone ?

pawn Код:
CMD:joingang(playerid,params[])
{
    if( PlayerInfo[playerid][pMember] >= 3 || PlayerInfo[playerid][pFMember] != 255 || PlayerInfo[playerid][pLeader] >= 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pDivision] >= 3 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pDivision] == 1)
    {
        SendClientMessageEx(playerid, COLOR_WHITE, "You can't accept this invite as you're already in a family/faction.");
    }
        if (PlayerInfo[playerid][pLevel] < 2)
        {
            SendClientMessageEx(playerid, COLOR_GRAD1, "You must be at least level 2.");
        }
            if(IsPlayerInRangeOfPoint(playerid,3.0,2489.9746,-1691.7869,14.7656)) //Grove Street
            {
                PlayerInfo[playerid][pFMember] = 0;
                PlayerInfo[playerid][pRank] = 1;
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"You have successfully joined Grove Street Families (Public Gang)! Remember this is a public gang!");
                SaveFamilies();
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_WHITE, "Your not in range of a gang point to join!");
            }
    }
    return 1;
}
Reply


Messages In This Thread
Whats wrong with this ? - by ShawnMiller1337 - 29.02.2012, 18:13
Re: Whats wrong with this ? - by Mike_Peterson - 29.02.2012, 18:26
Re: Whats wrong with this ? - by ShawnMiller1337 - 29.02.2012, 18:35
Re: Whats wrong with this ? - by ShawnMiller1337 - 29.02.2012, 19:08
Re: Whats wrong with this ? - by Shockey HD - 29.02.2012, 19:11
Re: Whats wrong with this ? - by ShawnMiller1337 - 29.02.2012, 19:26
Re: Whats wrong with this ? - by BigD - 29.02.2012, 19:32
Re: Whats wrong with this ? - by ShawnMiller1337 - 29.02.2012, 19:33
Re: Whats wrong with this ? - by BigD - 29.02.2012, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)