[Ajuda] Ajuda Em GuerraTerrorista
#1

Erros:

pawn Код:
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 017: undefined symbol "LucasInfo"
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : warning 215: expression has no effect
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 001: expected token: ";", but found "]"
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 029: invalid expression, assumed zero
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : fatal error 107: too many error messages on one line

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


4 Errors.

Linha:

pawn Код:
LucasInfo[playerid][InicioGuerra] = 0;

CMD INTEIRO:

pawn Код:
public GuerraTerrorista(playerid)
{
    new string[128];
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, MAX_PLAYER_NAME);
    TendoGuerra = 0;
    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e o Exйrcito Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COLOR_EXE, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a F.A.R.C Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_FARC, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a Al'qaeda Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_AL, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(Territorio[almortos] > Territorio[exemortos] && Territorio[talmortos] > Territorio[exemortos] && Territorio[FARCmortos] > Territorio[exemortos])//exercito ownou
    {
        format(string, sizeof(string), "O Exйrcito venceu a guerra matando %d do F.A.R.C, %d da Al'qaeda, e %d da Taliban!",Territorio[talmortos], Territorio[almortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_EXE, string);
    }
    else if(Territorio[exemortos] > Territorio[almortos] && Territorio[talmortos] > Territorio[almortos] && Territorio[FARCmortos] > Territorio[almortos])//al'qaeda ownou
    {
        format(string, sizeof(string), "A Al'qaeda venceu a guerra matando %d do F.A.R.C, %d do Exйrcito, e %d da Taliban!",Territorio[talmortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_AL, string);
    }
    else if(Territorio[exemortos] > Territorio[talmortos] && Territorio[almortos] > Territorio[talmortos] && Territorio[FARCmortos] > Territorio[talmortos])//F.A.R.C ownou
    {
        format(string, sizeof(string), "O F.A.R.C venceu a guerra matando %d da Al'qaeda, %d membros do Exйrcito, e %d da Taliban!",Territorio[almortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else if(Territorio[exemortos] > Territorio[FARCmortos] && Territorio[almortos] > Territorio[FARCmortos] && Territorio[talmortos] > Territorio[FARCmortos])//FARC ownou
    {
        format(string, sizeof(string), "A Taliban venceu a guerra matando %d da Al'qaeda, %d do Exйrcito, e %d do F.A.R.C!",Territorio[almortos], Territorio[exemortos], Territorio[talmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else
    {
        format(string, sizeof(string), "Houve um empate na guerra! Morreram: %d da Al'qaeda, %d do Exйrcito, %d do F.A.R.C, e %d da Taliban !",Territorio[almortos], Territorio[exemortos],Territorio[talmortos],Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_YELLOW2, string);
    }
    return true;
}
Podem Me Ajudar ?
Reply
#2

LucasInfo ??

Nao seria PlayerInfo?
Reply
#3

Nгo Sei,e porque esse cmd eu peguei de outro gm que no caso e a mata e no meu gm e outro lugar para dominar eu substitui o cmd so,irei fazer um teste aqui
Reply
#4

Nao Deu Certo
Reply
#5

Posso botar isso em qualquer lugar ? new LucasInfo[MAX_PLAYERS][StreetInfo];
Reply
#6

Quote:
Originally Posted by Alisson Silva Alves
Посмотреть сообщение
Erros:

pawn Код:
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 017: undefined symbol "LucasInfo"
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : warning 215: expression has no effect
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 001: expected token: ";", but found "]"
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : error 029: invalid expression, assumed zero
E:\[GM] Brasil Knight Games\gamemodes\BKC.pwn(55313) : fatal error 107: too many error messages on one line

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


4 Errors.

Linha:

pawn Код:
LucasInfo[playerid][InicioGuerra] = 0;

CMD INTEIRO:

pawn Код:
public GuerraTerrorista(playerid)
{
    new string[128];
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, MAX_PLAYER_NAME);
    TendoGuerra = 0;
    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e o Exйrcito Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COLOR_EXE, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a F.A.R.C Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_FARC, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
    {
        KillTimer(TempoGuerra);
        LucasInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a Al'qaeda Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_AL, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(Territorio[almortos] > Territorio[exemortos] && Territorio[talmortos] > Territorio[exemortos] && Territorio[FARCmortos] > Territorio[exemortos])//exercito ownou
    {
        format(string, sizeof(string), "O Exйrcito venceu a guerra matando %d do F.A.R.C, %d da Al'qaeda, e %d da Taliban!",Territorio[talmortos], Territorio[almortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_EXE, string);
    }
    else if(Territorio[exemortos] > Territorio[almortos] && Territorio[talmortos] > Territorio[almortos] && Territorio[FARCmortos] > Territorio[almortos])//al'qaeda ownou
    {
        format(string, sizeof(string), "A Al'qaeda venceu a guerra matando %d do F.A.R.C, %d do Exйrcito, e %d da Taliban!",Territorio[talmortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_AL, string);
    }
    else if(Territorio[exemortos] > Territorio[talmortos] && Territorio[almortos] > Territorio[talmortos] && Territorio[FARCmortos] > Territorio[talmortos])//F.A.R.C ownou
    {
        format(string, sizeof(string), "O F.A.R.C venceu a guerra matando %d da Al'qaeda, %d membros do Exйrcito, e %d da Taliban!",Territorio[almortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else if(Territorio[exemortos] > Territorio[FARCmortos] && Territorio[almortos] > Territorio[FARCmortos] && Territorio[talmortos] > Territorio[FARCmortos])//FARC ownou
    {
        format(string, sizeof(string), "A Taliban venceu a guerra matando %d da Al'qaeda, %d do Exйrcito, e %d do F.A.R.C!",Territorio[almortos], Territorio[exemortos], Territorio[talmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else
    {
        format(string, sizeof(string), "Houve um empate na guerra! Morreram: %d da Al'qaeda, %d do Exйrcito, %d do F.A.R.C, e %d da Taliban !",Territorio[almortos], Territorio[exemortos],Territorio[talmortos],Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_YELLOW2, string);
    }
    return true;
}
Podem Me Ajudar ?
Substitua sua callback por essa:

pawn Код:
public GuerraTerrorista(playerid)
{
    new string[128];
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, MAX_PLAYER_NAME);
    TendoGuerra = 0;
    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
    {
        KillTimer(TempoGuerra);
        PlayerInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e o Exйrcito Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COLOR_EXE, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
    {
        KillTimer(TempoGuerra);
        PlayerInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a F.A.R.C Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_FARC, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
    {
        KillTimer(TempoGuerra);
        PlayerInfo[playerid][InicioGuerra] = 0;
        TendoGuerra = 0;
        format(string, sizeof(string), "%s e a Al'qaeda Finalizaram uma Guerra!",plname);
        SendClientMessageToAll(COR_AL, string);
        GangZoneHideForAll(GZGuerra);
        GangZoneDestroy(GZGuerra);
    }
    if(Territorio[almortos] > Territorio[exemortos] && Territorio[talmortos] > Territorio[exemortos] && Territorio[FARCmortos] > Territorio[exemortos])//exercito ownou
    {
        format(string, sizeof(string), "O Exйrcito venceu a guerra matando %d do F.A.R.C, %d da Al'qaeda, e %d da Taliban!",Territorio[talmortos], Territorio[almortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_EXE, string);
    }
    else if(Territorio[exemortos] > Territorio[almortos] && Territorio[talmortos] > Territorio[almortos] && Territorio[FARCmortos] > Territorio[almortos])//al'qaeda ownou
    {
        format(string, sizeof(string), "A Al'qaeda venceu a guerra matando %d do F.A.R.C, %d do Exйrcito, e %d da Taliban!",Territorio[talmortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_AL, string);
    }
    else if(Territorio[exemortos] > Territorio[talmortos] && Territorio[almortos] > Territorio[talmortos] && Territorio[FARCmortos] > Territorio[talmortos])//F.A.R.C ownou
    {
        format(string, sizeof(string), "O F.A.R.C venceu a guerra matando %d da Al'qaeda, %d membros do Exйrcito, e %d da Taliban!",Territorio[almortos], Territorio[exemortos], Territorio[FARCmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else if(Territorio[exemortos] > Territorio[FARCmortos] && Territorio[almortos] > Territorio[FARCmortos] && Territorio[talmortos] > Territorio[FARCmortos])//FARC ownou
    {
        format(string, sizeof(string), "A Taliban venceu a guerra matando %d da Al'qaeda, %d do Exйrcito, e %d do F.A.R.C!",Territorio[almortos], Territorio[exemortos], Territorio[talmortos]);
        SendClientMessageToAll(COR_FARC, string);
    }
    else
    {
        format(string, sizeof(string), "Houve um empate na guerra! Morreram: %d da Al'qaeda, %d do Exйrcito, %d do F.A.R.C, e %d da Taliban !",Territorio[almortos], Territorio[exemortos],Territorio[talmortos],Territorio[FARCmortos]);
        SendClientMessageToAll(COLOR_YELLOW2, string);
    }
    return true;
}

Apenas troque a public por isso que te mandei....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)