14.07.2011, 06:59
Tipo achei esse infoorg no forum e um filterscript ai tipo coloco pra compilar mas da 4 erros
Os Erros que da
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(129) : error 010: invalid function or declaration
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(131) : error 010: invalid function or declaration
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(133) : error 021: symbol already defined: "VerMembro2"
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(136) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
new MembroOrg2[][50] = { "Membro", "Membro2", "Membro3", "Membro4", "Membro5", "Membro6", "Membro7", "Membro8", "Membro9", "Membro10", "Membro11", "Membro12" }; new Orgs2[][50] = { "Orgs/1.ini", "Orgs/2.ini", "Orgs/3.ini", "Orgs/4.ini", "Orgs/6.ini", "Orgs/7.ini", "Orgs/8.ini", "Orgs/9.ini", "Orgs/10.ini", "Orgs/11.ini", "Orgs/12.ini", "Orgs/13.ini", "Orgs/14.ini", "Orgs/15.ini", "Orgs/16.ini", "Orgs/17.ini", "Orgs/18.ini", "Orgs/19.ini", "Orgs/20.ini", "Orgs/21.ini", "Orgs/22.ini", "Orgs/23.ini", "Orgs/24.ini", "Orgs/25.ini" }; stock GetLider(){ new Garf[120],pow[30]; for(new i; i<sizeof(Orgs2); i++) { format(pow,30,"%d",i); format(Garf,120,"Org id: %d Lider %s",pow,dini_Get(pow,"Lider")); } return Garf; } stock AddMembro(playerid,player[]){ new CoisaLoca,CoisaS[256]; format(CoisaS,256,"Contas/%s.ini","pMember"); CoisaLoca = dini_Int(CoisaS,player); if(CoisaLoca >= 1) return SendClientMessage(playerid,COLOR_RED,"Esse Player Ja tem um cargo em outra org"); return dini_Set(CoisaS,"pMember",PlayerInfo[playerid][pMember]); } stock TirarMembro(playerid,player[],patente[]){ new CoisaS[256]; format(CoisaS,256,"Contas/%s.ini","pMember"); new OrgLider = dini_Int(CoisaS,"pMember"); if(OrgLider == PlayerInfo[playerid][pMember] || OrgLider == PlayerInfo[playerid][pLeader]){ for(new i; i<sizeof(Orgs2); i++) { if(strcmp(dini_Get(Orgs2[i],patente),player,true)==0) { dini_Set(Orgs2[i],patente,"Ninguem"); dini_Set(CoisaS,"pMember","0"); } } } return true; } stock LimparTodos(){ for(new i; i<sizeof(Orgs2); i++) { dini_Set(Orgs2[i],"Lider","Ninguem"); if(!dini_Exists(Orgs2[i])) dini_Create(Orgs2[i]); for(new j; j<sizeof(MembroOrg2); j++) dini_Set(Orgs2[i],MembroOrg2[j],"Ninguem"); } return true; } stock InfoOrg(pid,orgname[],patente[]){ TirarMembro(pid,PlayerName(pid),patente); if(!dini_Exists(orgname)) dini_Create(orgname); dini_Set(orgname,patente,PlayerName(pid)); } stock VerMembro(playerid){ new higor[256],higor1[256]; format(higor,256,"Orgs/%d.ini",PlayerInfo[playerid][pMember]); format(higor1,256, "Lider > %s || Membros > %s\n > %s\n > %s\n > %s\n > %s\n > %s", dini_Get(higor,"Lider"), dini_Get(higor,"Membro"), dini_Get(higor,"Membro2"), dini_Get(higor,"Membro3"), dini_Get(higor,"Membro4"), dini_Get(higor,"Membro5"), dini_Get(higor,"Membro6")); ShowPlayerDialog(playerid,165+20,DIALOG_STYLE_MSGBOX,"InfOrg",higor1,"Proxima","Sair"); return true; } stock VerMembro2(playerid){ new higor[256],higor1[256]; format(higor,256,"Orgs/%d.ini",PlayerInfo[playerid][pMember]); format(higor1,256, "Membros > %s\n > %s\n > %s\n > %s\n > %s\n > %s", dini_Get(higor,"Membro7"), dini_Get(higor,"Membro8"), dini_Get(higor,"Membro9"), dini_Get(higor,"Membro10"), dini_Get(higor,"Membro11"), dini_Get(higor,"Membro12")); ShowPlayerDialog(playerid,165+21,DIALOG_STYLE_MSGBOX,"InfOrg",higor1,"Ok","Sair"); return true; } // Em ONDiloag: if(dialogid == 165+20) { if(response) { VerMembro2(playerid); } }
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(129) : error 010: invalid function or declaration
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(131) : error 010: invalid function or declaration
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(133) : error 021: symbol already defined: "VerMembro2"
C:\Documents and Settings\Lukinha\Meus documentos\Server Samp\Game Mode Dia 11.07\infoorg.pwn(136) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.