SA-MP Forums Archive
[Ajuda] warning 219: local variable "pname" - 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] warning 219: local variable "pname" (/showthread.php?tid=438402)



warning 219: local variable "pname" - MatheusMendes - 20.05.2013

Como retiro esses avisos ??

PHP код:
C:\Users\Matheus-PC\Desktop\Iniciante.pwn(642) : warning 219local variable "pname" shadows a variable at a preceding level
C
:\Users\Matheus-PC\Desktop\Iniciante.pwn(658) : warning 219local variable "pname" shadows a variable at a preceding level
C
:\Users\Matheus-PC\Desktop\Iniciante.pwn(727) : warning 203symbol is never used"pname"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Warnings

Quem puder ajudar, agradeзo!


Re: warning 219: local variable "pname" - BreakDriFT - 20.05.2013

Jб tem uma/ou mais variбveis com o mesmo nome mude ou apaga.


Re: warning 219: local variable "pname" - zSuYaNw - 20.05.2013

https://sampforum.blast.hk/showthread.php?tid=252966


Re: warning 219: local variable "pname" - MatheusMendes - 20.05.2013

Como Assim ?? nгo entendi man :/

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Jб tem uma/ou mais variбveis com o mesmo nome mude ou apaga.



Re: warning 219: local variable "pname" - iNicianTe - 20.05.2013

manda o codigo
a variavel eos
new pname


Re: warning 219: local variable "pname" - MatheusMendes - 20.05.2013

SГO ESSES CУDIGOS AI

// ============ Coloque Os News Aqui ==============
new pname[MAX_PLAYER_NAME];
new count1 = 0;
new ServidorNome[0][128] = {
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «"

};



// ================================================== ===========================
public NomeServer()
{
count1++; if(count1 > 4)count1 = 0;
new string[128];
format(string, sizeof(string), "hostname %s", ServidorNome[count1]);
SendRconCommand(string);
}


Respuesta: warning 219: local variable "pname" - eDlAndrePawno - 20.05.2013

Код:
// ============ Coloque Os News Aqui ==============
new count1 = 0;
new ServidorNome[0][128] = {
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «"

};



// ================================================== ===========================
public NomeServer()
{
count1++; if(count1 > 4)count1 = 0;
new string[128];
format(string, sizeof(string), "hostname %s", ServidorNome[count1]);
SendRconCommand(string);
}



Re: Respuesta: warning 219: local variable "pname" - MatheusMendes - 20.05.2013

Vlw Andre
Quote:
Originally Posted by eDlAndrePawno
Посмотреть сообщение
Код:
// ============ Coloque Os News Aqui ==============
new count1 = 0;
new ServidorNome[0][128] = {
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"» GNB - Gaming Fox Brasil ® (0.3x) «",
"Visite nosso Fуrum: WwW.GamingFoxBrasil.Tk",
"» GNB - Gaming Fox Brasil ® (0.3x) «"

};



// ================================================== ===========================
public NomeServer()
{
count1++; if(count1 > 4)count1 = 0;
new string[128];
format(string, sizeof(string), "hostname %s", ServidorNome[count1]);
SendRconCommand(string);
}