Porque da essas warnings?
#1

Код:
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.
Reply
#2

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

apagar n й soluзгo. Renomeie as variaveis.
Reply
#4

Nem precisei renomeiar, apagar resolveu o problema

Mesmo assim, vlw aos dois =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)