[Ajuda] Me Ajudem com estes erros?
#1

Estou mudando as profs de dialog para menu mais deu estes erros me ajuda?

pawn Код:
Compilando BWC.pwn...
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2929) : error 010: invalid function or declaration
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2932) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2934) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2936) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2938) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2940) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2942) : error 010: invalid function or declaration
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2944) : error 021: symbol already defined: "AddMenuItem"

C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2947) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2950) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2953) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2956) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2959) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2962) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2965) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2968) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONS
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2971) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2974) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2977) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2980) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2982) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2985) : error 010: invalid function or declaration
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2987) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2990) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2993) : error 021: sy
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2993) : error 021: symbol already defined: "AddMenuItem"
C:\Users\MatheusAllef\Documents\BWC CONSERTADO\gamemodes\BWC.pwn(2996) : error 021: symbol already defined: "AddMenuItem"

Compilation aborted.Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Envie as linhas para que podermos ajudar.
Reply
#3

as linhas
pawn Код:
/*==================== Menus Profissao ========================================*/
    profissoes = CreateMenu("Profissoes", 1, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(Profissoes, 0, "ClasseBaixa");

    AddMenuItem(Profissoes, 0, "ClasseMedia");

    AddMenuItem(Profissoes, 0, "ClasseMedia2");

    AddMenuItem(Profissoes, 0, "Criminosas");

    AddMenuItem(Profissoes, 0, "Publicos");

    AddMenuItem(Profissoes, 0, "- ~w~Cancelar");
 /*===================== Classe Baixa ========================================*/
    ClasseBaixa = CreateMenu("ClasseBaixa      level  Salario", 2, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(ClasseBaixa, 0, "Mendigo");
    AddMenuItem(ClasseBaixa, 1, "~b~[0      /~g~ 650,00]");

    AddMenuItem(ClasseBaixa, 0, "Empregada");
    AddMenuItem(ClasseBaixa, 1, "~b~[25      /~g~ 800,00]");

    AddMenuItem(ClasseBaixa, 0, "Pedreiro");
    AddMenuItem(ClasseBaixa, 1, "~b~[15     /~g~ 900,00]");

    AddMenuItem(ClasseBaixa, 0, "Gari");
    AddMenuItem(ClasseBaixa, 1, "~b~[15    /~g~ 1.000,00]");

    AddMenuItem(ClasseBaixa, 0, "Lixeiro");
    AddMenuItem(ClasseBaixa, 1, "~b~[15  /~g~ 2.500,00]");

    AddMenuItem(ClasseBaixa, 0, "Temac");
    AddMenuItem(ClasseBaixa, 1, "~b~[450  /~g~ 1.300,00]");

    AddMenuItem(ClasseBaixa, 0, "Correio");
    AddMenuItem(ClasseBaixa, 1, "~b~[30 /~g~ 1.400,00]");

    AddMenuItem(ClasseBaixa, 0, "Estudente");
    AddMenuItem(ClasseBaixa, 1, "~b~[0  /~g~ 600,00]");

    AddMenuItem(ClasseBaixa, 0, "Flanelinha");
    AddMenuItem(ClasseBaixa, 1, "~b~[0  /~g~ 600,00]");

    AddMenuItem(ClasseBaixa, 0, "Cantor");
    AddMenuItem(ClasseBaixa, 1, "~b~[90  /~g~ 600,00]");

    AddMenuItem(ClasseBaixa, 0, "Vendedor de coxinha");
    AddMenuItem(ClasseBaixa, 1, "~b~[0  /~g~ 600,00]");

    AddMenuItem(ClasseBaixa, 0, "Poeta");
    AddMenuItem(ClasseBaixa, 1, "~b~[150  /~g~ 600,00]")

    AddMenuItem(ClasseBaixa, 0, "Voltar");

    AddMenuItem(ClasseBaixa, 0,  "- ~w~Cancelar");

    /*======================== Classe Mйdia ====================================*/
    ClasseMedia1 = CreateMenu("ClasseMedia1     level Salario", 2, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(ClasseMedia1, 0, "Motorista Particular");
    AddMenuItem(ClasseMedia1, 1, "~b~[0      /~g~ 3.000,00]");

    AddMenuItem(ClasseMedia1, 0, "Jornalista");
    AddMenuItem(ClasseMedia1, 1, "~b~[25      /~g~ 220,00]");

    AddMenuItem(ClasseMedia1, 0, "Fotografo");
    AddMenuItem(ClasseMedia1, 1, "~b~[20    /~g~ 5.000,00]");

    AddMenuItem(ClasseMedia1, 0, "Reporter");
    AddMenuItem(ClasseMedia1, 1, "~b~[50     /~g~ 1.100,00]");

    AddMenuItem(ClasseMedia1, 0, "Ancora");
    AddMenuItem(ClasseMedia1, 1, "~b~[30    /~g~ 780,00]");

    AddMenuItem(ClasseMedia1, 0, "Meteorologista");
    AddMenuItem(ClasseMedia1, 1, "~b~[40    /~g~ 800,00]");

    AddMenuItem(ClasseMedia1, 0, "Mecanico");
    AddMenuItem(ClasseMedia1, 1, "~b~[50   /~g~ 900,00]");

    AddMenuItem(ClasseMedia1, 0, "Rapper");
    AddMenuItem(ClasseMedia1, 1, "~b~[100    /~g~ 310,00]");

    AddMenuItem(ClasseMedia1, 0, "Vendedor de Skin");
    AddMenuItem(ClasseMedia1, 1, "~b~[600    /~g~ 310,00]");

    AddMenuItem(ClasseMedia1, 0, "Frentista");
    AddMenuItem(ClasseMedia1, 1, "~b~[56     /~g~ 310,00]");

    AddMenuItem(ClasseMedia1, 0, "Bailarina");
    AddMenuItem(ClasseMedia1, 1, "~b~[35     /~g~ 310,00]");

    AddMenuItem(ClasseMedia1, 0, "Voltar");

    AddMenuItem(ClasseMedia1, 0, "- ~w~Cancelar");

    /*======================== Classe Mйdia2 ====================================*/
    ClasseMedia2 = CreateMenu("ClasseMedia2      level  Salario", 2, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(ClasseMedia2, 0, "Taxista");
    AddMenuItem(ClasseMedia2, 1, "~b~[30    /~g~ 500,00]");

    AddMenuItem(ClasseMedia2, 0, "Paramedico");
    AddMenuItem(ClasseMedia2, 1, "~b~[25    /~g~ 5.000,00]");

    AddMenuItem(ClasseMedia2, 0, "Aposentado");
    AddMenuItem(ClasseMedia2, 1, "~b~[1000     /~g~ 1.100,00]");

    AddMenuItem(ClasseMedia2, 0, "Advogado");
    AddMenuItem(ClasseMedia2, 1, "~b~[60    /~g~ 780,00]");

    AddMenuItem(ClasseMedia2, 0, "Guarda Costas");
    AddMenuItem(ClasseMedia2, 1, "~b~[0    /~g~ 800,00]");

    AddMenuItem(ClasseMedia2, 0, "Corredor de Rua");
    AddMenuItem(ClasseMedia2, 1, "~b~[50   /~g~ 900,00]");

    AddMenuItem(ClasseMedia2, 0, "Promotor");
    AddMenuItem(ClasseMedia2, 1, "~b~[50    /~g~ 310,00]");

    AddMenuItem(ClasseMedia2, 0, "Professor");
    AddMenuItem(ClasseMedia2, 1, "~b~[600    /~g~ 310,00]");

    AddMenuItem(ClasseMedia2, 0, "Padre");
    AddMenuItem(ClasseMedia2, 1, "~b~[20    /~g~ 310,00]");

    AddMenuItem(ClasseMedia2, 0, "Prefeito");
    AddMenuItem(ClasseMedia2, 1, "~b~[800    /~g~ 310,00]");

    AddMenuItem(ClasseMedia2, 0, "Presidente");
    AddMenuItem(ClasseMedia2, 1, "~b~[1000    /~g~ 310,00]");

    AddMenuItem(ClasseMedia2, 0, "Voltar");

    AddMenuItem(ClasseMedia2, 0,  "- ~w~Cancelar");

    /*========================= Criminosa ===================================*/
    Criminosa = CreateMenu("Criminosa    level Salario", 2, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(Criminosa, 0, "Traf. de Drogas");
    AddMenuItem(Criminosa, 1, "~b~[450    /~g~   2.000,00]");

    AddMenuItem(Criminosa, 0, "Assasino");
    AddMenuItem(Criminosa, 1, "~b~[65  /~g~   4.000,00]");

    AddMenuItem(Criminosa, 0, "Terrorista");
    AddMenuItem(Criminosa, 1, "~b~[800   /~g~    3.000,00]");

    AddMenuItem(Criminosa, 0, "Sequestrador");
    AddMenuItem(Criminosa, 1, "~b~[600    /~g~   1.010,00]");

    AddMenuItem(Criminosa, 0, "Assasino Prof.");
    AddMenuItem(Criminosa, 1, "~b~[80    /~g~    1.500,00]");

    AddMenuItem(Criminosa, 0, "Prostituta");
    AddMenuItem(Criminosa, 1, "~b~[40  /~g~  4.000,00]");

    AddMenuItem(Criminosa, 0, "Assaltante");
    AddMenuItem(Criminosa, 1, "~b~[90    /~g~   800,00]");

    AddMenuItem(Criminosa, 0, "Voltar");

    AddMenuItem(Criminosa, 0, "- ~w~Cancelar");

    /*====================== Publico =====================================*/
    Publico = CreateMenu("Publico   level Salario", 2, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(Publico, 0, "Guarda");
    AddMenuItem(Publico, 1, "~b~[40   /~g~  300,00]");

    AddMenuItem(Publico, 0, "Policia Rodoviaria");
    AddMenuItem(Publico, 1, "~b~[60   /~g~  700,00]");

    AddMenuItem(Publico, 0, "Policia Militar");
    AddMenuItem(Publico, 1, "~b~[70   /~g~  500,00]");

    AddMenuItem(Publico, 0, "Policia Civil");
    AddMenuItem(Publico, 1, "~b~[90   /~g~  350,00]");

    AddMenuItem(Publico, 0, "Policia Federal");
    AddMenuItem(Publico, 1, "~b~[120   /~g~  385,00]");

    AddMenuItem(Publico, 0, "Delegado");
    AddMenuItem(Publico, 1, "~b~[160   /~g~  385,00]");

    AddMenuItem(Publico, 0, "Bope");
    AddMenuItem(Publico, 1, "~b~[210   /~g~  385,00]");

    AddMenuItem(Publico, 0, "SWAT");
    AddMenuItem(Publico, 1, "~b~[250   /~g~  385,00]");

    AddMenuItem(Publico, 0, "Narcoticos");
    AddMenuItem(Publico, 1, "~b~[350   /~g~  385,00]");

    AddMenuItem(Publico, 0, "FBI");
    AddMenuItem(Publico, 1, "~b~[450   /~g~  385,00]");

    AddMenuItem(Publico, 0, "Interpol");
    AddMenuItem(Publico, 1, "~b~[500   /~g~  385,00]");

    AddMenuItem(Publico, 0, "Voltar");

    AddMenuItem(Publico, 0, "- ~w~Cancelar");

    /*============================ Menu Spawn Profs ===============================*/
    spawnprof = CreateMenu("Spawn", 1, 50.0, 180.0, 200.0, 200.0);

    AddMenuItem(spawnprof, 0, "Spawn Profissao");

    AddMenuItem(spawnprof, 0, "Spawn Agencia atual");

    AddMenuItem(spawnprof, 0, "- ~w~Cancelar");
/*==========================================================*/
Reply
#4

Nгo achei nada de errado do cуdigo alйm disso:
pawn Код:
profissoes = CreateMenu("Profissoes", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Profissoes, 0, "ClasseBaixa");
Vocк definiu o menu como profissoes e usou Profissoes no AddMenuItem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)