[Ajuda]Erros
#1

pawn Код:
if(strcmp("/comprar2",cmd,true,10) == 0)
    {
        if(gTeam[playerid] == TEAM_ZOMBIE)
        {
            ShowPlayerDialog(playerid,2394,DIALOG_STYLE_LIST,"{FFFFFF}-Gun Shop-Zombies-","{FF0000}Knife ($5000)\n{FF0000}Moto-serra. ($2000)\n{FF0000}Purple dildo ","Comprar","Cancelar");
        }
        else if(gTeam[playerid] == TEAM_HUMAN) {
            SendClientMessage(playerid,VERDE_AZUL,"Erro: {FFA500}Vocк nгo pode usar este comando vocк й um Humano");
        }
        return 1;
    }
pawn Код:
if(dialogid==2394) {
       if(response) {
           if(listitem==0) {                     // Knife
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                GivePlayerWeapon(playerid,4,500);
                GivePlayerMoney(playerid,-2000);
                SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou uma Knife por ${FFFFFF}2000.");
            }
            if(listitem==1) {                     // Moto-serra
                if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                GivePlayerWeapon(playerid,22,600);
                GivePlayerMoney(playerid,-5000);
                SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou Moto-serra por ${FFFFFF}5000.");
            }
            if(listitem==2) {                     // Purple dildo
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                GivePlayerWeapon(playerid,10,540);
                GivePlayerMoney(playerid,-5000);
                SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou um  Purple dildo por${FFFFFF}500.");
            }
        }
    }

    return 0;
}
erros
pawn Код:
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6622) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6623) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6624) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6625) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6630) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6631) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6636) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6637) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6645) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.
Reply
#2

Voce quer que a gente adivinhe onde estгo os erros ? ¬¬'
Reply
#3

pawn Код:
if(dialogid==2394)
    {
        if(!response)
            return 0;
        else
        {
            switch (listitem)
            {
                case 1:
                {                 // Knife
                    if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                    GivePlayerWeapon(playerid,4,500);
                    GivePlayerMoney(playerid,-2000);
                    SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou uma Knife por ${FFFFFF}2000.");
                }
                case 2:
                {                        // Moto-serra
                    if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                    GivePlayerWeapon(playerid,22,600);
                    GivePlayerMoney(playerid,-5000);
                    SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou Moto-serra por ${FFFFFF}5000.");
                }
                case 3:
                {                    // Purple dildo
                    if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
                    GivePlayerWeapon(playerid,10,540);
                    GivePlayerMoney(playerid,-5000);
                    SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou um  Purple dildo por${FFFFFF}500.");
                }
            }
        }
        return 1;
    }
Reply
#4

@Shadow foi mal

@Lipe apareceu mais 12 erros iguais.

eu tenho 1 /comprar jб to tentando criar esse /comprar2 somente pros zombies mais nгo ta dando certo.

pawn Код:
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6622) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6624) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6625) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6626) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6628) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6630) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6632) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6637) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6639) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6644) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6646) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6653) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.
os erros sгo de acordo com o inicio da if(dialogid==2394) ao final.
Reply
#5

Impossivel aqui compilou...
Reply
#6

Lipe, eu tenho outro /comprar e criei outro abaixo dele /comprar 2 e no dialogid criei em baixo tambйm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)