[Ajuda] Membros organizaзхes e dнvisхes
#1

PHP код:
    if(strcmp(cmd"/membrogoe"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USO: /membrogoe [ID]");
                return 
1;
            }
            new 
para1;
//            new ftext[26];
            
para1 ReturnUser(tmp);
            if(
PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == 2)
            {
                if(
PlayerInfo[playerid][pRank] >= 7)
                {
                    if(
IsPlayerConnected(para1))
                    {
                        if(
para1 != INVALID_PLAYER_ID)
                        {
                            if(
PlayerInfo[para1][pMembroDiv] == 0)
                            {
                                if(
divInfo[3][meVagas1] == || divInfo[3][meVagas2] == || divInfo[3][meVagas3] == || divInfo[3][meVagas4] == 0
                                
|| divInfo[3][meVagas5] == || divInfo[3][meVagas6] == || divInfo[3][meVagas7] == || divInfo[3][meVagas8] == 0
                                
|| divInfo[3][meVagas9] == || divInfo[3][meVagas10] == 0)
                                {
                                       
conviteDiv(para13);
                                       
format(stringsizeof(string), "Vocк foi colocado na divisгo GOE.");
                                    
SendClientMessage(para1COLOR_LIGHTBLUEstring);
                                    
PlayerInfo[para1][pMembroDiv] = 3;
                                }
                                else
                                {
                                      
SendClientMessage(playeridCOLOR_GREY"Esta divisгo estб cheia.");
                                    return 
1;
                                }
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"Este membro jб pertence a alguma divisгo.");
                                return 
1;
                            }
                        }
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar este comando.");
                }
            }
        }
        return 
1;
    } 
PHP код:
     if(strcmp(cmd,"/membrosgoe",true)==0//
    
{
         if(
PlayerInfo[playerid][pMember] == 2)
         {
               
j_MostrarDiv(playerid3);
               return 
1;
        }
        if(
PlayerInfo[playerid][pLeader] == 2)
        {
               
j_MostrarDiv(playerid3);
               return 
1;
         }
         else
        {
             
SendClientMessage(playerid0x808000AA"Vocк nгo tem org/gang");
        }
        return 
0x01;
     } 
Seguinte, quando coloco uma pessoa no GOE, e depois removo, o nome do player nгo sai da divisгo, alguйm pode me ajudar ? A mesma coisa esta com o "/membros" para ver quem esta na organizaзгo, mesmo que o player seja demitido, o nome dele nгo sai da divisгo. Me ajudem por favor.
Reply


Messages In This Thread
Membros organizaзхes e dнvisхes - by xJasonxX - 25.06.2014, 23:12
Re: Membros organizaзхes e dнvisхes - by Felipe_Freeze - 26.06.2014, 00:03
Re: Membros organizaзхes e dнvisхes - by xJasonxX - 26.06.2014, 00:13
Re: Membros organizaзхes e dнvisхes - by Felipe_Freeze - 26.06.2014, 00:37

Forum Jump:


Users browsing this thread: 1 Guest(s)