[AJUDA] ERRO Compiler
#1

Olб pessoal estou com esse erro nesse code

pawn Код:
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4263) : error 017: undefined symbol "cmd"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4266) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4266) : error 017: undefined symbol "idx"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4267) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4268) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4268) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4269) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4272) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4275) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4299) : error 017: undefined symbol "cmd"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4302) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4302) : error 017: undefined symbol "idx"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4303) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4304) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4304) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4305) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4308) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4309) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4312) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4313) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4315) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4315) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4317) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4319) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4319) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4321) : error 032: array index out of bounds (variable "OrgInfo")




pawn Код:
if(!strcmp(cmd, "/convidar", true))
    {
        new giveplayer[20];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /convidar [playerid]");
        recrutado = ReturnUser(tmp);
        if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
        {
            if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
            Org[playerid] = Org[recrutado];
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк convidou o player com sucesso!");
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser convidado para uma facзгo!");
            GetPlayerName(recrutado, giveplayer, 20);
            switch (OrgInfo[Org[playerid]][Vaga])
            {
                case 0,1: { format(OrgInfo[Org[playerid]][Membro1], MAX_PLAYER_NAME, giveplayer); }
                case 2: { format(OrgInfo[Org[playerid]][Membro2], MAX_PLAYER_NAME, giveplayer); }
                case 3: { format(OrgInfo[Org[playerid]][Membro3], MAX_PLAYER_NAME, giveplayer); }
                case 4: { format(OrgInfo[Org[playerid]][Membro4], MAX_PLAYER_NAME, giveplayer); }
                case 5: { format(OrgInfo[Org[playerid]][Membro5], MAX_PLAYER_NAME, giveplayer); }
                case 6: { format(OrgInfo[Org[playerid]][Membro6], MAX_PLAYER_NAME, giveplayer); }
                case 7: { format(OrgInfo[Org[playerid]][Membro7], MAX_PLAYER_NAME, giveplayer); }
                case 8: { format(OrgInfo[Org[playerid]][Membro8], MAX_PLAYER_NAME, giveplayer); }
                case 9: { format(OrgInfo[Org[playerid]][Membro9], MAX_PLAYER_NAME, giveplayer); }
                case 10: { format(OrgInfo[Org[playerid]][Membro10], MAX_PLAYER_NAME, giveplayer); }
            }
            SalvarOrgs();
            OrgInfo[Org[playerid]][Vaga]++;
        }
        else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
        return 1;
    }




    if(!strcmp(cmd, "/demitir", true))
    {
        new giveplayer[20];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /demitir[playerid]");
        recrutado = ReturnUser(tmp);
        if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
        {
            if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
            Org[recrutado] = 0;
            Cargo[recrutado] = 0;
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк demitiu o player com sucesso!");
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser demitido de uma facзгo!");
            GetPlayerName(recrutado, giveplayer, 20);
            if(OrgInfo[org][Vaga] == 1)
            {
                format(OrgInfo[org][Membro1], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 2)
            {
                format(OrgInfo[org][Membro2], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 3)
            {
                format(OrgInfo[org][Membro3], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 4)
            {
                format(OrgInfo[org][Membro4], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 5)
            {
                format(OrgInfo[org][Membro5], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 6)
            {
                format(OrgInfo[org][Membro6], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 7)
            {
                format(OrgInfo[org][Membro7], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 8)
            {
                format(OrgInfo[org][Membro8], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 9)
            {
                format(OrgInfo[org][Membro9], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            if(OrgInfo[org][Vaga] == 10)
            {
                format(OrgInfo[org][Membro10], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
            }
            SalvarOrgs();
        }
        else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
        return 1;
    }




    if(!strcmp(cmd, "/promover", true))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
        recrutado = ReturnUser(tmp);
        new tmp2[128];
        tmp2 = strtok(cmdtext, idx);
        if(!strlen(tmp2)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
        new cargo = strval(tmp2);
        if(cargo < 1 || cargo > 6) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
        if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
        {
            if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
            Cargo[recrutado] = cargo;
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк promoveu o player com sucesso!");
            SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser promovido na sua facзгo!");
            return 1;
        }
        else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
        return 1;
    }
Reply
#2

pawn Код:
new recrutando;
new sendername[MAX_PLAYER_NAME];
new cmd[128], tmp[128], idx;
cmd = strtok(cmdtext,idx);
^^

troque por:

pawn Код:
format(OrgInfo[playerid][Membro1];
Reply
#3

Bem vc esqueceu de definir muitas variбveis ai rsrsrsrsrs
Reply
#4

nгo estou entendendo ainda, onde tem esse new recrutando ?
Reply
#5

Quote:
Originally Posted by peumenezes
Посмотреть сообщение
nгo estou entendendo ainda, onde tem esse new recrutando ?
Tenso.. ¬¬

justamente por nгo ter que deu o erro.. hehe

pawn Код:
// coloca isso no OnPlayerCommandTex
new recrutando;
new sendername[MAX_PLAYER_NAME];
new cmd[128], tmp[128], idx;
cmd = strtok(cmdtext,idx);

// deve ficar +- assim:

public OnPlayerCommandText(playerid, cmdtext[])
{

new recrutando;
new sendername[MAX_PLAYER_NAME];
new cmd[128], tmp[128], idx;
cmd = strtok(cmdtext,idx);

// resto dos comandos.
e posta o seu OrgInfo.
Reply
#6

deu isso
pawn Код:
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4267) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4272) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4274) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4274) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4275) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4278) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4281) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4308) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4310) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4310) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4311) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4314) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4315) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4318) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4319) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4321) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4321) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4323) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4325) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4325) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4327) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4329) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4329) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4331) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4333) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4333) : error 032: array index out of bounds (variable "OrgInfo")

pawn Код:
new OrgInfo[9][org];
new Org[MAX_PLAYERS];
new Cargo[MAX_PLAYERS];
Reply
#7

alguйm sabe o que й ?
Reply
#8

peumenezes, vocк nгo sabe nada sobre PAWN estб com a falsa fantasia que irб abrir um GM GF edit e irб ter 200 players... Vб ler tutoriais, sгo tantos, eu mesmo criei um de como fazer Organizaзхes, todo explicado mas ninguйm aqui liga nй, sequer comentam...

Leia tutoriais e a Wiki e cerca de 80 porcento de suas dъvidas irгo desaparecer...
Reply
#9

Quote:
Originally Posted by CidadeNovaRP
Посмотреть сообщение
peumenezes, vocк nгo sabe nada sobre PAWN estб com a falsa fantasia que irб abrir um GM GF edit e irб ter 200 players... Vб ler tutoriais, sгo tantos, eu mesmo criei um de como fazer Organizaзхes, todo explicado mas ninguйm aqui liga nй, sequer comentam...

Leia tutoriais e a Wiki e cerca de 80 porcento de suas dъvidas irгo desaparecer...
errado, o gm dele nao й gf =)

й BTG, sendo assim й menos um nb usando gf '-'
Reply
#10

Quote:
Originally Posted by THE_FALLEN
Посмотреть сообщение
errado, o gm dele nao й gf =)

й BTG, sendo assim й menos um nb usando gf '-'
BTG, BMG, MegaLife, tudo base de GF, como dizem "Tudo junto e Misturado" kk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)