a Problem !
#1

I have created a command /invite in dialog for the player who want's in the Organization...
When the player Accept in Dialog, he isn't a member and his skin isn't changing why ?
here is the dialog
pawn Код:
if(dialogid == 1122)
  {
      if(!response) return SendClientMessage(playerid, COLOR_WHITE,"{37F906}INFO:{FFFFFF}Ja Odbivte ponudata za Clenstvo!");
      {
      new para1;
      new ftext[20];
      switch(listitem)
      {
            case 1:
            {
                            if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "LS PD"; ChosenSkin[para1] = 265; SetPlayerSkin(para1, 265); }
                            else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                            else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Hitna Pomoc"; ChosenSkin[para1] = 274; SetPlayerSkin(para1, 274); }
                            else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "The Russian Mafia"; ChosenSkin[para1] = 126; SetPlayerSkin(para1, 126); }
                            else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "The Escobar Cartel"; ChosenSkin[para1] = 98; SetPlayerSkin(para1, 98); }
                            else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Vlada"; ChosenSkin[para1] = 61; SetPlayerSkin(para1, 61); }
                            else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "[SE:RT] Novinari"; ChosenSkin[para1] = 17; SetPlayerSkin(para1, 17); }
                            else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Company"; ChosenSkin[para1] = 182; SetPlayerSkin(para1, 182); }
                            else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Parking Servis"; ChosenSkin[para1] = 8; SetPlayerSkin(para1, 8); }
                            else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Los Santos Vagos"; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }
                            else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "Grove Street Family"; ChosenSkin[para1] = 106; SetPlayerSkin(para1, 106); }
                            else { return 1; }
                            //GetPlayerNameEx(para1, giveplayer, sizeof(giveplayer));
                            //GetPlayerName(playerid, sendername, sizeof(sendername));
                            PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                            PlayerInfo[para1][pRank] = 1;
                            format(string, sizeof(string), "[INFO] {FFFFFF}Pozvani ste u %s, pozvao vas je Lider %s", ftext, sendername);
                            SendClientMessage(para1, COLOR_LIGHTBLUE, string);
            }
      }
      }
  }
Reply


Messages In This Thread
a Problem ! - by 3RoR - 22.04.2012, 09:15
Re: a Problem ! - by [MG]Dimi - 22.04.2012, 10:14
Re: a Problem ! - by s3rious - 22.04.2012, 10:28
Re: a Problem ! - by IceCube! - 22.04.2012, 10:34
Re: a Problem ! - by s3rious - 22.04.2012, 10:35
Re: a Problem ! - by 3RoR - 22.04.2012, 13:02
Re: a Problem ! - by 3RoR - 22.04.2012, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)