[Ajuda] Hash warning's
#1

Bom estou com esses avisos como retiro eles ?

avisos
pawn Код:
F:\Users\weverton\Desktop\Nova pasta\gamemodes\mysql.pwn(118) : warning 219: local variable "hash" shadows a variable at a preceding level
F:\Users\weverton\Desktop\Nova pasta\gamemodes\mysql.pwn(119) : warning 206: redundant test: constant expression is non-zero
F:\Users\weverton\Desktop\Nova pasta\gamemodes\mysql.pwn(120) : warning 225: unreachable code

a linha

pawn Код:
hash(dados[])
{
   new hash; //aqui
   for(new i = (strlen(dados) -1); 1 > -1; --i) hash += (dados[1]*dados[(i+1)]); //aqui
   return hash; //e aqui
}
Reply
#2

pawn Код:
hash(dados[])
{
   new hashx; //aqui
   for(new i = (strlen(dados) -1); 1 > -1; --i) hashx+= (dados[1]*dados[(i+1)]); //aqui
   return hashx; //e aqui
}
Reply
#3

sobro dois

pawn Код:
F:\Users\weverton\Desktop\Nova pasta\gamemodes\mysql.pwn(119) : warning 206: redundant test: constant expression is non-zero
F:\Users\weverton\Desktop\Nova pasta\gamemodes\mysql.pwn(120) : warning 225: unreachable code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)