SA-MP Forums Archive
Porque da essas warnings? - 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: Porque da essas warnings? (/showthread.php?tid=133884)



Porque da essas warnings? - Joaquim_Blakman - 14.03.2010

Код:
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(14474) : warning 219: local variable "ammo" shadows a variable at a preceding level
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(14480) : warning 219: local variable "ammo" shadows a variable at a preceding level
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(14486) : warning 219: local variable "ammo" shadows a variable at a preceding level
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(14492) : warning 219: local variable "ammo" shadows a variable at a preceding level
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(14510) : warning 219: local variable "ammo" shadows a variable at a preceding level
C:\Users\Josй Joaquim\Desktop\BGP MANOLO ;D\gamemodes\GAMEPLAYER.pwn(21161) : warning 219: local variable "idcar" shadows a variable at a preceding level
Linhas.:
pawn Код:
new ammo;
                if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GREY, "  Balas no maior que 1 menor que 999 !");
pawn Код:
new idcar = GetPlayerVehicleID(playerid);
A do new ammo sу mostrei uma porque as outras sгo as mesma coisa.

Grato a quem ajudar.


Re: Porque da essas warnings? - Ambrуsio - 14.03.2010

"new idcar" e "new ammo" jб estгo definidas, procura eles nas linhas do erro e apague!



Re: Porque da essas warnings? - wafffllesss - 14.03.2010

apagar n й soluзгo. Renomeie as variaveis.


Re: Porque da essas warnings? - Joaquim_Blakman - 14.03.2010

Nem precisei renomeiar, apagar resolveu o problema

Mesmo assim, vlw aos dois =D