[ajuda]Infoorg problema na hora de copila
#1

bom galera eu to com um infoorg aqui so que tem um problema e nesse codico abaicho eu coloco ele tipo aonde pede pra coloca e tipo o na hora que ta copilando nгo da erro nada ele simplistamente da erro no pawno tipo como vo diser o pawno para de copila e da envio de erro,tipo ele da um erro que presisa ser fechado envio de relatorio de erros tipo oque tem dee erado no codico abaixo ajuda =D.


pawn Код:
if(PlayerInfo[playerid][pMembro] > 0)// ou if(PlayerInfo[playerid][pMember] > 0)
        {
         new orgp[60];
         new S[40],V1[40],V2[40],V3[40],V4[40],V5[40],V6[40],V7[40],V8[40],V9[40],V10[40],V11[40],V12[40],V13[40],V14[40],V15[40];
         if(PlayerInfo[playerid][pLider] == 0)// ou if(PlayerInfo[playerid][pLeader] == 0)
         {
          format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pMembro]);// ou format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pMember]);
          strcat(S,dini_Get(orgp,"sub"));
          strcat(V1,dini_Get(orgp,"Vaga1"));
          strcat(V2,dini_Get(orgp,"Vaga2"));
          strcat(V3,dini_Get(orgp,"Vaga3"));
          strcat(V4,dini_Get(orgp,"Vaga4"));
          strcat(V5,dini_Get(orgp,"Vaga5"));
          strcat(V6,dini_Get(orgp,"Vaga6"));
          strcat(V7,dini_Get(orgp,"Vaga7"));
          strcat(V8,dini_Get(orgp,"Vaga8"));
          strcat(V9,dini_Get(orgp,"Vaga9"));
          strcat(V10,dini_Get(orgp,"Vaga10"));
          strcat(V11,dini_Get(orgp,"Vaga11"));
          strcat(V12,dini_Get(orgp,"Vaga12"));
          strcat(V13,dini_Get(orgp,"Vaga13"));
          strcat(V14,dini_Get(orgp,"Vaga14"));
          strcat(V15,dini_Get(orgp,"Vaga15"));
          if(strcmp(V1,PlayerNameez(playerid),true) && strcmp(V2,PlayerNameez(playerid),true)
          && strcmp(V3,PlayerNameez(playerid),true) && strcmp(V4,PlayerNameez(playerid),true)
          && strcmp(V5,PlayerNameez(playerid),true) && strcmp(V6,PlayerNameez(playerid),true)
          && strcmp(V7,PlayerNameez(playerid),true) && strcmp(V8,PlayerNameez(playerid),true)
          && strcmp(V9,PlayerNameez(playerid),true) && strcmp(V10,PlayerNameez(playerid),true)
          && strcmp(V11,PlayerNameez(playerid),true) && strcmp(V12,PlayerNameez(playerid),true)
          && strcmp(V13,PlayerNameez(playerid),true) && strcmp(V14,PlayerNameez(playerid),true)
          && strcmp(V15,PlayerNameez(playerid),true) && strcmp(S,PlayerNameez(playerid),true))
          {
           gTeam[playerid] = 3;
           PlayerInfo[playerid][pTeam] = 3;
           PlayerInfo[playerid][pMembro] = 0;// ou PlayerInfo[playerid][pMember] = 0;
           PlayerInfo[playerid][pCargo] = 0;// ou PlayerInfo[playerid][pRank] = 0;
           PlayerInfo[playerid][pChar] = 0;
           PlayerInfo[playerid][pFMember] = 255;
           new rand = random(sizeof(CIV));
           SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
           PlayerInfo[playerid][pModel] = CIV[rand];
           MedicBill[playerid] = 0;
           SpawnPlayer(playerid);
           MedicBill[playerid] = 0;
           SendClientMessage(playerid,0xC0C0C0AA,"Voce foi demitido enquanto estava off,Agora e um civil novamente!");
          }
         }
        }
        if(PlayerInfo[playerid][pLider] > 0)// ou if(PlayerInfo[playerid][pLeader] == 0)
        {
         new orgp[60];
         new L[40];
         format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pLider]);
         strcat(L,dini_Get(orgp,"Lider"));
         if(strcmp(L,PlayerNameez(playerid),true))
         {
          gTeam[playerid] = 3;
          PlayerInfo[playerid][pTeam] = 3;
          PlayerInfo[playerid][pLider] = 0;// ou PlayerInfo[playerid][pLeader] = 0;
          PlayerInfo[playerid][pCargo] = 0;// ou PlayerInfo[playerid][pRank] = 0;
          PlayerInfo[playerid][pChar] = 0;
          PlayerInfo[playerid][pFMember] = 255;
          new rand = random(sizeof(CIV));
          SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
          PlayerInfo[playerid][pModel] = CIV[rand];
          MedicBill[playerid] = 0;
          SpawnPlayer(playerid);
          SendClientMessage(playerid,0xC0C0C0AA,"Voce foi demitido enquanto estava off,Agora e um civil novamente!");
         }
        }//so isto no public OnPlayerLogin(playerid,password[])
Reply
#2

eita so eu que uso os espaзos aqui? esses negocios sem espaзo da um monte de waring....
Reply
#3

Quote:
Originally Posted by sergio_xd
Посмотреть сообщение
eita so eu que uso os espaзos aqui? esses negocios sem espaзo da um monte de waring....
й de tanto warning nem copila trava na hora msm mas nгo to conseguindo resolver.
Reply
#4

arruma os espaзos
Reply
#5

Tenta
pawn Код:
if(PlayerInfo[playerid][pMembro] > 0)// ou if(PlayerInfo[playerid][pMember] > 0)
{
    new orgp[60];
    new S[40],V1[40],V2[40],V3[40],V4[40],V5[40],V6[40],V7[40],V8[40],V9[40],V10[40],V11[40],V12[40],V13[40],V14[40],V15[40];
    if(PlayerInfo[playerid][pLider] == 0)// ou if(PlayerInfo[playerid][pLeader] == 0)
    {
        format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pMembro]);// ou format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pMember]);
        strcat(S,dini_Get(orgp,"sub"));
        strcat(V1,dini_Get(orgp,"Vaga1"));
        strcat(V2,dini_Get(orgp,"Vaga2"));
        strcat(V3,dini_Get(orgp,"Vaga3"));
        strcat(V4,dini_Get(orgp,"Vaga4"));
        strcat(V5,dini_Get(orgp,"Vaga5"));
        strcat(V6,dini_Get(orgp,"Vaga6"));
        strcat(V7,dini_Get(orgp,"Vaga7"));
        strcat(V8,dini_Get(orgp,"Vaga8"));
        strcat(V9,dini_Get(orgp,"Vaga9"));
        strcat(V10,dini_Get(orgp,"Vaga10"));
        strcat(V11,dini_Get(orgp,"Vaga11"));
        strcat(V12,dini_Get(orgp,"Vaga12"));
        strcat(V13,dini_Get(orgp,"Vaga13"));
        strcat(V14,dini_Get(orgp,"Vaga14"));
        strcat(V15,dini_Get(orgp,"Vaga15"));
    if(strcmp(V1,PlayerNameez(playerid),true) && strcmp(V2,PlayerNameez(playerid),true)
    {
        && strcmp(V3,PlayerNameez(playerid),true) && strcmp(V4,PlayerNameez(playerid),true)
        && strcmp(V5,PlayerNameez(playerid),true) && strcmp(V6,PlayerNameez(playerid),true)
        && strcmp(V7,PlayerNameez(playerid),true) && strcmp(V8,PlayerNameez(playerid),true)
        && strcmp(V9,PlayerNameez(playerid),true) && strcmp(V10,PlayerNameez(playerid),true)
        && strcmp(V11,PlayerNameez(playerid),true) && strcmp(V12,PlayerNameez(playerid),true)
        && strcmp(V13,PlayerNameez(playerid),true) && strcmp(V14,PlayerNameez(playerid),true)
        && strcmp(V15,PlayerNameez(playerid),true) && strcmp(S,PlayerNameez(playerid),true))
    {
        gTeam[playerid] = 3;
        PlayerInfo[playerid][pTeam] = 3;
        PlayerInfo[playerid][pMembro] = 0;// ou PlayerInfo[playerid][pMember] = 0;
        PlayerInfo[playerid][pCargo] = 0;// ou PlayerInfo[playerid][pRank] = 0;
        PlayerInfo[playerid][pChar] = 0;
        PlayerInfo[playerid][pFMember] = 255;
        new rand = random(sizeof(CIV));
        SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        PlayerInfo[playerid][pModel] = CIV[rand];
        MedicBill[playerid] = 0;
        SpawnPlayer(playerid);
        MedicBill[playerid] = 0;
        SendClientMessage(playerid,0xC0C0C0AA,"Voce foi demitido enquanto estava off,Agora e um civil novamente!");
    }
    }
    }
    if(PlayerInfo[playerid][pLider] > 0)// ou if(PlayerInfo[playerid][pLeader] == 0)
    {
        new orgp[60];
        new L[40];
        format(orgp,70,"orgs/%i.ini",PlayerInfo[playerid][pLider]);
        strcat(L,dini_Get(orgp,"Lider"));
    if(strcmp(L,PlayerNameez(playerid),true))
    {
    gTeam[playerid] = 3;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pLider] = 0;// ou PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pCargo] = 0;// ou PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    new rand = random(sizeof(CIV));
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    MedicBill[playerid] = 0;
    SpawnPlayer(playerid);
    SendClientMessage(playerid,0xC0C0C0AA,"Voce foi demitido enquanto estava off,Agora e um civil novamente!");
    }
    }
    return 1;
}//so isto no public OnPlayerLogin(playerid,password[])
dei uma organizada mas nгo sei se vai funcionar
Reply
#6

opa vlw mas nгo vo mais tentar colocar no meu gm tipo funciona mas nгo tenho as CFG o fornecedor do infoorg nгo me passou as Cfg entгo й complicado.
Reply
#7

Quote:
Originally Posted by Gabriel_Halls
Посмотреть сообщение
opa vlw mas nгo vo mais tentar colocar no meu gm tipo funciona mas nгo tenho as CFG o fornecedor do infoorg nгo me passou as Cfg entгo й complicado.
se tiver a base de salvamento eu consigo criar o cfg.... Eu criei todos os cfg do meu godfather pois quando eu baixei ele nгo tinha nenhuma.

resumindo:

Se vocк pegar um pouco de tempo e paciencia vocк vai conseguir criar a sua cfg.
Reply
#8

Filho da mae, este InfoOrg passei ao Rodoolfo, E essa pohaaa vcs ficam passando um ao outro?Aff sacanagem FDM
Reply
#9

esse infoorg e de um gm da net sa-mp vicio se nao me engano tem la
Reply
#10

Bom.. este infoorg й meu. (:
A pasta que precisa ser criada й:
Код:
orgs
E essa tal pessoa, tambem deve ser eu.
Use essa stock em OnGameModeInit, para criar os arquivos da org:
Код:
CreateOrg(OrgID,OrgName[]);

Para quem nгo sabe, este infoorg foi repassado sem minha autorizaзгo e estб mais ou menos liberado na internet.



@OBS: Leia o .INC do Infoorg para aprender a como configurar ele. =x
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)