22.03.2018, 23:28
Olб pessoa;
Bom jб tentei buscar em tуpicos e nгo achei resultados como podem ver"https://sampforum.blast.hk/showthread.php?tid=628076", o dof2 nгo estб carregando a variбvel inteira.
O problema й no OrgInfo[idx][cHqID].
http://prntscr.com/iv2kbe
http://prntscr.com/iv2khm
"printf("AS- idx:%d - corgid:%d - chqid:%d - orgtipo:%d",idx, OrgInfo[idx][cOrgID], OrgInfo[idx][cHqID], OrgInfo[idx][cTipoOrg]);"
Mensagem Editada[22/03/2018 аs 20:30]
Bom jб tentei buscar em tуpicos e nгo achei resultados como podem ver"https://sampforum.blast.hk/showthread.php?tid=628076", o dof2 nгo estб carregando a variбvel inteira.
Код:
static stock CarregarInfoOrg() { new idx = 1; while (idx < sizeof(OrgInfo)) { new infoArquivoOrgs[200]; format(infoArquivoOrgs, sizeof(infoArquivoOrgs), Pasta_ORGSINFO, idx); if(DOF2_FileExists(infoArquivoOrgs)) { OrgInfo[idx][cOrgID] = DOF2_GetInt(infoArquivoOrgs, "cOrgID"); strmid(OrgInfo[idx][cNomeOrg], DOF2_GetString(infoArquivoOrgs, "cNomeOrg"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cNomeOrg")), 255); strmid(OrgInfo[idx][cDataOrg], DOF2_GetString(infoArquivoOrgs, "cDataOrg"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cDataOrg")), 255); OrgInfo[idx][cCorOrg] = DOF2_GetInt(infoArquivoOrgs, "cCorOrg"); OrgInfo[idx][cTipoOrg] = DOF2_GetInt(infoArquivoOrgs, "cTipoOrg"); OrgInfo[idx][cHqID] = DOF2_GetInt(infoArquivoOrgs, "cHQID"); OrgInfo[idx][cCofreOrg] = DOF2_GetInt(infoArquivoOrgs, "cCofreOrg"); strmid(OrgInfo[idx][cLider], DOF2_GetString(infoArquivoOrgs, "cLider"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cLider")), 255); strmid(OrgInfo[idx][cSubLider], DOF2_GetString(infoArquivoOrgs, "cSub-Lider"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cSub-Lider")), 255); strmid(OrgInfo[idx][cSubLider2], DOF2_GetString(infoArquivoOrgs, "cSub-Lider2"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cSub-Lider2")), 255); strmid(OrgInfo[idx][cMembro1], DOF2_GetString(infoArquivoOrgs, "cMembro1"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro1")), 255); strmid(OrgInfo[idx][cMembro2], DOF2_GetString(infoArquivoOrgs, "cMembro2"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro2")), 255); strmid(OrgInfo[idx][cMembro3], DOF2_GetString(infoArquivoOrgs, "cMembro3"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro3")), 255); strmid(OrgInfo[idx][cMembro4], DOF2_GetString(infoArquivoOrgs, "cMembro4"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro4")), 255); strmid(OrgInfo[idx][cMembro5], DOF2_GetString(infoArquivoOrgs, "cMembro5"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro5")), 255); strmid(OrgInfo[idx][cMembro6], DOF2_GetString(infoArquivoOrgs, "cMembro6"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro6")), 255); strmid(OrgInfo[idx][cMembro7], DOF2_GetString(infoArquivoOrgs, "cMembro7"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro7")), 255); strmid(OrgInfo[idx][cMembro8], DOF2_GetString(infoArquivoOrgs, "cMembro8"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro8")), 255); strmid(OrgInfo[idx][cMembro9], DOF2_GetString(infoArquivoOrgs, "cMembro9"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro9")), 255); strmid(OrgInfo[idx][cMembro10], DOF2_GetString(infoArquivoOrgs, "cMembro10"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro10")), 255); strmid(OrgInfo[idx][cMembro11], DOF2_GetString(infoArquivoOrgs, "cMembro11"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro11")), 255); strmid(OrgInfo[idx][cMembro12], DOF2_GetString(infoArquivoOrgs, "cMembro12"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro12")), 255); strmid(OrgInfo[idx][cMembro13], DOF2_GetString(infoArquivoOrgs, "cMembro13"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro13")), 255); strmid(OrgInfo[idx][cMembro14], DOF2_GetString(infoArquivoOrgs, "cMembro14"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro14")), 255); strmid(OrgInfo[idx][cMembro15], DOF2_GetString(infoArquivoOrgs, "cMembro15"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro15")), 255); strmid(OrgInfo[idx][cMembro16], DOF2_GetString(infoArquivoOrgs, "cMembro16"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro16")), 255); strmid(OrgInfo[idx][cMembro17], DOF2_GetString(infoArquivoOrgs, "cMembro17"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro17")), 255); strmid(OrgInfo[idx][cMembro18], DOF2_GetString(infoArquivoOrgs, "cMembro18"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro18")), 255); strmid(OrgInfo[idx][cMembro19], DOF2_GetString(infoArquivoOrgs, "cMembro19"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro19")), 255); strmid(OrgInfo[idx][cMembro20], DOF2_GetString(infoArquivoOrgs, "cMembro20"),0, strlen(DOF2_GetString(infoArquivoOrgs, "cMembro20")), 255); OrgInfo[idx][cRespeitoOrg] = DOF2_GetInt(infoArquivoOrgs, "cRespeitoOrg"); OrgInfo[idx][cRespawnOrgUltiamte] = DOF2_GetInt(infoArquivoOrgs, "cRespawnOrgUltiamte"); OrgInfo[idx][cTrsDominadosOrg] = DOF2_GetInt(infoArquivoOrgs, "cTrsDominadosOrg"); OrgInfo[idx][cGuerrasOrg] = DOF2_GetInt(infoArquivoOrgs, "cGuerrasOrg"); OrgInfo[idx][cInvasoesOrg] = DOF2_GetInt(infoArquivoOrgs, "cInvasoesOrg"); OrgInfo[idx][cEmboscadasOrg] = DOF2_GetInt(infoArquivoOrgs, "cEmboscadasOrg"); OrgInfo[idx][cBocasDeFumoOrg] = DOF2_GetInt(infoArquivoOrgs, "cBocasDeFumoOrg"); OrgInfo[idx][cPenitenciariaOrg] = DOF2_GetInt(infoArquivoOrgs, "cPenitenciariaOrg"); OrgInfo[idx][cRivaisMortosOrg] = DOF2_GetInt(infoArquivoOrgs, "cRivaisMortosOrg"); OrgInfo[idx][cRoubosOrg] = DOF2_GetInt(infoArquivoOrgs, "cRoubosOrg"); OrgInfo[idx][cSequestrosOrg] = DOF2_GetInt(infoArquivoOrgs, "cSequestrosOrg"); OrgInfo[idx][cAssaltosOrg] = DOF2_GetInt(infoArquivoOrgs, "cAssaltosOrg"); OrgInfo[idx][CQVeiculosComprados] = DOF2_GetInt(infoArquivoOrgs, "CQVeiculosComprados"); OrgInfo[idx][cNsVeiculosComprados][1] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados1"); OrgInfo[idx][cIDSVeiculos][1] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos1"); OrgInfo[idx][cNsVeiculosComprados][2] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados2"); OrgInfo[idx][cIDSVeiculos][2] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos2"); OrgInfo[idx][cNsVeiculosComprados][3] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados3"); OrgInfo[idx][cIDSVeiculos][3] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos3"); OrgInfo[idx][cNsVeiculosComprados][4] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados4"); OrgInfo[idx][cIDSVeiculos][4] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos4"); OrgInfo[idx][cNsVeiculosComprados][5] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados5"); OrgInfo[idx][cIDSVeiculos][5] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos5"); OrgInfo[idx][cNsVeiculosComprados][6] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados6"); OrgInfo[idx][cIDSVeiculos][6] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos6"); OrgInfo[idx][cNsVeiculosComprados][7] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados7"); OrgInfo[idx][cIDSVeiculos][7] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos7"); OrgInfo[idx][cNsVeiculosComprados][8] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados8"); OrgInfo[idx][cIDSVeiculos][8] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos8"); OrgInfo[idx][cNsVeiculosComprados][9] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados9"); OrgInfo[idx][cIDSVeiculos][9] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos9"); OrgInfo[idx][cNsVeiculosComprados][10] = DOF2_GetInt(infoArquivoOrgs, "cNsVeiculosComprados10"); OrgInfo[idx][cIDSVeiculos][10] = DOF2_GetInt(infoArquivoOrgs, "cIDSVeiculos10"); printf("AS- idx:%d - corgid:%d - chqid:%d - orgtipo:%d",idx, OrgInfo[idx][cOrgID], OrgInfo[idx][cHqID], OrgInfo[idx][cTipoOrg]); } idx++; } return idx; }
http://prntscr.com/iv2kbe
http://prntscr.com/iv2khm
"printf("AS- idx:%d - corgid:%d - chqid:%d - orgtipo:%d",idx, OrgInfo[idx][cOrgID], OrgInfo[idx][cHqID], OrgInfo[idx][cTipoOrg]);"
Mensagem Editada[22/03/2018 аs 20:30]