[Ajuda] Novo erro ao copilar
#1

pwn(16356) : error 001: expected token: ")", but found "["
pwn(16356) : error 029: invalid expression, assumed zero
pwn(16356) : warning 215: expression has no effect
pwn(16356) : error 001: expected token: ";", but found "]"
pwn(16356) : fatal error 107: too many error messages on one line

Linha 16356:
Код:
if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz])
Alguйm sabe o motivo do erro? Achei que jб estava tudo resolvido, atй dar isso.
Reply
#2

PHP код:
if(Zones[i][zone_minx] && Zones[i][zone_miny] && Zones[i][zone_minz] && Zones[i][zone_maxx] && Zones[i][zone_maxy] && Zones[i][zone_maxz]); 
faltando a ;
Reply
#3

Quote:
Originally Posted by SkullGamer
Посмотреть сообщение
PHP код:
if(Zones[i][zone_minx] && Zones[i][zone_miny] && Zones[i][zone_minz] && Zones[i][zone_maxx] && Zones[i][zone_maxy] && Zones[i][zone_maxz]); 
faltando a ;
Skull, mesmo apуs isso, continuou com o erro, o mesmo.

Line completa:

Код:
if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz]);
        {
            format(string,sizeof(string),"%s",Zones[i][zone_name]);
            return string;
        }
    }
    return string;
}
Reply
#4

Quote:
Originally Posted by Ortk
Посмотреть сообщение
Skull, mesmo apуs isso, continuou com o erro, o mesmo.

Line completa:

Код:
if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz]);
        {
            format(string,sizeof(string),"%s",Zones[i][zone_name]);
            return string;
        }
    }
    return string;
}
Ops, boiei feio agr, if nгo tem ;. Desculpe.risos, vou ver aqui, se conseguir retorno com respostas.

Mande o cуdigo em que essa condiзгo estб dentro, por favor.
Reply
#5

Quote:
Originally Posted by SkullGamer
Посмотреть сообщение
Ops, boiei feio agr, if nгo tem ;. Desculpe.risos, vou ver aqui, se conseguir retorno com respostas.

Mande o cуdigo em que essa condiзгo estб dentro, por favor.
Ahah... Tudo bem, nem se preocupe.

O seguinte cуdigo:

Код:
stock GetZone(Float:x,Float:y,Float:z)
{
    new string[128];
	new Zones[200];
    for(new i=0;i<sizeof(Zones);i++)
    {
    #pragma tabsize 0
    new Float:zone_minx,
	    Float:zone_miny,
	    Float:zone_minz,
	    Float:zone_maxx,
	    Float:zone_maxy,
	    Float:zone_maxz
    	;
    	
        if(x > Zones[i][zone_minx] && y > Zones[i][zone_miny] && z > Zones[i][zone_minz] && x < Zones[i][zone_maxx] && y < Zones[i][zone_maxy] && z < Zones[i][zone_maxz]);
        {
            format(string,sizeof(string),"%s",Zones[i][zone_name]);
            return string;
        }
    }
    return string;
}
Reply
#6

PHP код:
stock GetZone(Float:x,Float:y,Float:z)
{
    new 
string[128];
    new 
Zones[200];
    for(new 
i=0;i<sizeof(Zones);i++)
    {
        new 
Float:zone_minx,
        
Float:zone_miny,
        
Float:zone_minz,
        
Float:zone_maxx,
        
Float:zone_maxy,
        
Float:zone_maxz;
        if(
Zones[i][zone_minx] && Zones[i][zone_miny] && Zones[i][zone_minz] && Zones[i][zone_maxx] && Zones[i][zone_maxy] && Zones[i][zone_maxz])
        {
            
format(string,sizeof(string),"%s",Zones[i][zone_name]);
            return 
string;
        }
    }
    return 
string;

tenta..
Reply
#7

Erro continua na quela linha que citei no inicio. Mesmo erro.
Reply
#8

Quote:
Originally Posted by Ortk
Посмотреть сообщение
Erro continua na quela linha que citei no inicio. Mesmo erro.
Aqui compilou corretamente, tente olhar as linhas proximas a ela para ver se nгo falta alguma ;
Reply
#9

Quote:
Originally Posted by SkullGamer
Посмотреть сообщение
Aqui compilou corretamente, tente olhar as linhas proximas a ela para ver se nгo falta alguma ;
Skull, dei uma olhada e vi que nada faltava, te mando essa print para uma verificaзгo mais avanзada... Jб testei o seu e deu o mesmo erro, entгo voltei com o antigo e procurei se havia algum erro de ; e nada.

Image:

http://i.imgur.com/NuG51yX.png
Reply
#10

E aquele loop ali em cima ? objectid. ta faltando o objectid++) .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)