SA-MP Forums Archive
[Ajuda] Hash warning's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Hash warning's (/showthread.php?tid=460289)



Hash warning's - shittt - 27.08.2013

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
}



Re: Hash warning's - smiiir - 27.08.2013

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
}



Re: Hash warning's - shittt - 27.08.2013

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