[Ajuda] Salvamento Infoorg
#7

Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
public CarregarInfoOrg(playerid)
{
     if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
     {
          new caminho[56];
          if(PlayerInfo[playerid][pLider] == 0) format(caminho, sizeof(caminho), "InfoOrg/Org%d.ini", PlayerInfo[playerid][pMembro]);
          if(PlayerInfo[playerid][pLider] >= 0) format(caminho, sizeof(caminho), "InfoOrg/Org%d.ini", PlayerInfo[playerid][pLider]);
          if(!dini_Exists(caminho)) dini_Create(caminho);
          new nomedoplayer[MAX_PLAYER_NAME];
          GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
          pInfoOrg[playerid][VagaID] = 0;
          if(!strcmp(dini_Get(caminho, "Vaga1"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 1;
          else if(!strcmp(dini_Get(caminho, "Vaga2"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 2;
          else if(!strcmp(dini_Get(caminho, "Vaga3"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 3;
          else if(!strcmp(dini_Get(caminho, "Vaga4"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 4;
          else if(!strcmp(dini_Get(caminho, "Vaga5"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 5;
          else if(!strcmp(dini_Get(caminho, "Vaga6"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 6;
          else if(!strcmp(dini_Get(caminho, "Vaga7"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 7;
          else if(!strcmp(dini_Get(caminho, "Vaga8"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 8;
          else if(!strcmp(dini_Get(caminho, "Vaga9"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 9;
          else if(!strcmp(dini_Get(caminho, "Vaga10"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 10;
          else if(!strcmp(dini_Get(caminho, "Vaga11"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 11;
          else if(!strcmp(dini_Get(caminho, "Vaga12"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 12;
          else if(!strcmp(dini_Get(caminho, "Vaga13"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 13;
          else if(!strcmp(dini_Get(caminho, "Vaga14"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 14;
          else if(!strcmp(dini_Get(caminho, "Vaga15"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 15;
          else if(!strcmp(dini_Get(caminho, "Vaga16"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 16;
          else if(!strcmp(dini_Get(caminho, "Vaga17"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 17;
          else if(!strcmp(dini_Get(caminho, "Vaga18"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 18;
          else if(!strcmp(dini_Get(caminho, "Vaga19"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 19;
          else if(!strcmp(dini_Get(caminho, "Vaga20"), nomedoplayer)) return pInfoOrg[playerid][VagaID] = 20;
          else if(pInfoOrg[playerid][VagaID] == 0)
          {
               if(!PlayerInfo[playerid][pLider] == dini_Get(caminho, "Lider"))
               {
                    PlayerInfo[playerid][pLider] = 0;
                    PlayerInfo[playerid][pMembro] = 0;
               }
          }
     }
     return true;
}
Nao deu!!!


O erro esta aqui
pawn Код:
if(!PlayerInfo[playerid][pLider] == dini_Get(caminho, "Lider"))
Reply


Messages In This Thread
Salvamento Infoorg - by Don_Speed - 05.07.2012, 21:34
Re: Salvamento Infoorg - by ViniBorn - 06.07.2012, 00:21
Re: Salvamento Infoorg - by Don_Speed - 06.07.2012, 00:22
Re: Salvamento Infoorg - by dPlaYer_ - 06.07.2012, 00:25
Re: Salvamento Infoorg - by Don_Speed - 06.07.2012, 00:28
Re: Salvamento Infoorg - by paulor - 06.07.2012, 00:29
Re: Salvamento Infoorg - by Don_Speed - 06.07.2012, 00:34
Re: Salvamento Infoorg - by paulor - 06.07.2012, 00:52
Re: Salvamento Infoorg - by CidadeNovaRP - 06.07.2012, 01:00

Forum Jump:


Users browsing this thread: 2 Guest(s)