[Ajuda] Erro ao copilar
#1

Ta dando esse erro ao copilar, se alguйm puder consertar ou me da uma luz agradeзo.
Erro:
Код:
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 017: undefined symbol "foreach"
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 029: invalid expression, assumed zero
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 017: undefined symbol "i"
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
GM:
http://pastebin.com/EyuDdgyr

Tуpico do GM: https://sampforum.blast.hk/showthread.php?tid=358545

Obs: tenho todas as includes.
Reply
#2

Coloque essa include no seu pawno: http://pastebin.com/Seseuh2x
Reply
#3

Quote:
Originally Posted by delete
Посмотреть сообщение
Coloque essa include no seu pawno: http://pastebin.com/Seseuh2x
Continua os mesmos erros.
Vlw pela resposta.
Reply
#4

Posta as linhas
Reply
#5

Quote:
Originally Posted by delete
Посмотреть сообщение
Posta as linhas
pawn Код:
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 017: undefined symbol "foreach"
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 029: invalid expression, assumed zero
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : error 017: undefined symbol "i"
C:\Users\Vinicius\Desktop\BZG\gamemodes\BZG.pwn(999) : 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.
Reply
#6

posta a linha 999 do gm .-.
Reply
#7

pawn Код:
CMD:trazertodos(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 3)
        return SendClientMessage(playerid, COR_CINZA, "Vocк nгo й Administrador Level 3!");

    new equipe, Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(sscanf(params, "d", equipe))
        return SendClientMessage(playerid, COR_CINZA, "USE: /trazertodos [1 ou 2] (1 = Zombies | 2 = Sobreviventes)");

    new rand = random(3);
    foreach(new i : Player) //---linha 999
        if(PlayerInfo[i][pEquipe] == equipe) SendClientMessage(playerid, COR_VERMELHO, "O Administrador trouxe vocк atй ele!"), SetPlayerPos(i, X+rand, Y+rand, Z);
    return 1;
}
Reply
#8

Quando voce baixou a include que ele paaso voce colocou na pasata pawno/includes ?

define la em cima #define foreach

Tem algo definindo uma loop ai ... troque por playerid ou faca uma loop MAX_PLAYERS

ACHO que possa ser isso
Reply
#9

no topo tem #include <foreach> ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)