[Ajuda] Erro local variable "Nome"
#1

tenho a sscanf2.inc na pasta do pawno e ainda da esses erros aqui,oque sera??

C:\Users\Gabriel\Desktop\zP.pwn(1743) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\Gabriel\Desktop\zP.pwn(3141) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\Gabriel\Desktop\zP.pwn(3542) : warning 219: local variable "Nome" shadows a variable at a preceding level
Reply
#2

posta a linha, mais pelo oque da para ver, й que 2 variaveis com mesmo nome .
exemplo
new Nome;
new Nome;
Reply
#3

** Warning 219: local variable "diimenor" shadows a variable at a preceding level

A variбvel chamada foi criada em um nнvel anterior.

Exemplo:
pawn Код:
//ERRADO
public DiimenorTest()
{
    new diimenor;
    if(Exemplo)
    {
        new diimenor;
        diimenor = 1;
    }
}
pawn Код:
//CERTO
public DiimenorTest()
{
    new diimenor;
    if(Exemplo)
    {
        diimenor = 1;
    }
}
Dб uma olhada no code ai.
Reply
#4

LINHA: 1743
new Nome[MAX_PLAYER_NAME];
LINHA: 3141
static Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); return Nome;
LINHA: 3542
new Nome[MAX_PLAYER_NAME];
Reply
#5

Apaga, sу deixa um.
Код:
new Nome[MAX_PLAYER_NAME];
Reply
#6

se eu tiro uma somente ja enxe de erros!! q merda isso...primeiro gm em zcmd que faзo.
Reply
#7

Cara OLHA minha explicaзгo sobre warning 219 acima, e tente resolver.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)