[AJUDA] Comando
#1

O que hб de errado com este code?

pawn Код:
if(strcmp(cmd, "/infoorg", true) ==0 || strcmp(cmd, "/infoorganizacao", true) ==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
            {
                new org = GetPlayerOrg(playerid);
                new idlider,idsub,id1,id2,id3,id4,id5,id6,id7,id8;
                idlider = GetPlayerID(InfoOrg[org][Lider]));
                idsub = GetPlayerID(InfoOrg[org][SubLider]);
                id1 = GetPlayerID(InfoOrg[org][Membro1]);
                id2 = GetPlayerID(InfoOrg[org][Membro2]);
                id3 = GetPlayerID(InfoOrg[org][Membro3]);
                id4 = GetPlayerID(InfoOrg[org][Membro4]);
                id5 = GetPlayerID(InfoOrg[org][Membro5]);
                id6 = GetPlayerID(InfoOrg[org][Membro6]);
                id7 = GetPlayerID(InfoOrg[org][Membro7]);
                id8 = GetPlayerID(InfoOrg[org][Membro8]);
                new arquivo[256];
                new PlayerNome[MAX_PLAYER_NAME];
                GetPlayerName(playerid, PlayerNome, sizeof(PlayerNome));
                //format(arquivo, sizeof(arquivo), "/Contas/%s.ini",PlayerNome);
                ClearChatbox(playerid, 3);
                SendClientMessage(playerid,COLOR_INFOORG3,"------------------------------------------------------------------------------------------------------------------------------");
                SendClientMessage(playerid,COLOR_INFOORG3,"*    . : : : | => Informaзхes da Organizaзгo <= | : : : .    *");
                new a[256];
                new b[256];
                new NomeOrg[MAX_ORG_NOME];
                OrgNome(org, NomeOrg, MAX_ORG_NOME);
                format(a,sizeof(a),"Lider da Org: %s [CARGO: %d]\nSub Lider da Org: %s [CARGO: %d]\nVaga 1: %s [CARGO: %d]\nVaga 2: %s [CARGO: %d]\nVaga 3: %s [CARGO: %d]\nVaga 4: %s [CARGO: %d]\nVaga 5: %s [CARGO: %d]\nVaga 6: %s [CARGO: %d]\nVaga 7: %s [CARGO: %d]\nVaga 8: %s [CARGO: %d]",
                InfoOrg[org][Lider],PlayerInfo[idlider][pRank],
                InfoOrg[org][SubLider],PlayerInfo[idsub][pRank],
                InfoOrg[org][Membro1],PlayerInfo[id1][pRank],
                InfoOrg[org][Membro2],PlayerInfo[id2][pRank],
                InfoOrg[org][Membro3],PlayerInfo[id3][pRank],
                InfoOrg[org][Membro4],PlayerInfo[id4][pRank],
                InfoOrg[org][Membro5],PlayerInfo[id5][pRank],
                InfoOrg[org][Membro6],PlayerInfo[id6][pRank],
                InfoOrg[org][Membro7],PlayerInfo[id7][pRank],
                InfoOrg[org][Membro8],PlayerInfo[id8][pRank]);
                format(b,sizeof(b),"Informaзхes da Organizaзгo %s",OrgNome(GetPlayerOrg(playerid),NomeOrg,MAX_ORG_NOME);
                ShowPlayerDialog(playerid,5509,DIALOG_STYLE_LIST,b,a,"Fechar","");
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTRED,"* Vocк nгo faz parte de uma organizaзгo!");
                return 1;
            }
        }
        return 1;
    }
Код:
C:\Documents and Settings\Pedro Miranda\Desktop\Novo Game Mode Exclusivo Pedro Miranda\New Hell Server\gamemodes\InfoTeste.pwn(23973) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Pedro Miranda\Desktop\Novo Game Mode Exclusivo Pedro Miranda\New Hell Server\gamemodes\InfoTeste.pwn(23973) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Pedro Miranda\Desktop\Novo Game Mode Exclusivo Pedro Miranda\New Hell Server\gamemodes\InfoTeste.pwn(23973) : warning 215: expression has no effect
C:\Documents and Settings\Pedro Miranda\Desktop\Novo Game Mode Exclusivo Pedro Miranda\New Hell Server\gamemodes\InfoTeste.pwn(24005) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Pedro Miranda\Desktop\Novo Game Mode Exclusivo Pedro Miranda\New Hell Server\gamemodes\InfoTeste.pwn(23983) : warning 204: symbol is assigned a value that is never used: "arquivo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#2

pawn Код:
idlider = GetPlayerID(InfoOrg[org][Lider]));
tem um parenteses a mais...

pawn Код:
idlider = GetPlayerID(InfoOrg[org][Lider]);
Reply
#3

Um dos sistemas mais burros que eu jб vi. lol
Reply
#4

Que esculaxo xD
Reply
#5

Isso ai provйm de um GM todo bugado, aja paciкncia mais ele jб conseguiu concertar...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)