SA-MP Forums Archive
[Ajuda] Como resolve esses 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: [Ajuda] Como resolve esses warnings (/showthread.php?tid=592349)



Como resolve esses warnings - iFaLLeN - 23.10.2015

Код:
C:\Users\Felipe\Desktop\GM CVV 2.0\pawno\include\dof2.inc(215) : warning 219: local variable "f" shadows a variable at a preceding level
C:\Users\Felipe\Desktop\GM CVV 2.0\pawno\include\dof2.inc(792) : warning 219: local variable "f" shadows a variable at a preceding level
C:\Users\Felipe\Desktop\GM CVV 2.0\pawno\include\dof2.inc(844) : warning 219: local variable "f" shadows a variable at a preceding level
Mude o gm pra DOF2, e te dando esses warnings :/


Obs

Ja tem isso no Topo
Код:
#include    < dof2 >
E a include na pasta Includes .

Abraзo


Re: Como resolve esses warnings - Dr_Pawno - 23.10.2015

Jб existe uma variбvel chamada "f", algum outro include deve ter a criado.


Re: Como resolve esses warnings - Jimmmy - 23.10.2015

Quote:
Originally Posted by Dr_Pawno
Посмотреть сообщение
Jб existe uma variбvel chamada "f", algum outro include deve ter a criado.
Como o amigo disse acima, entre no seu GameMode e altera o nome da variavel f para outro nome jб que na incluide jб esta o mesmo nome ou vocк pode fazer o inverso.


Re: Como resolve esses warnings - ProKillerpa - 24.10.2015

PHP код:
new f// var global ( inicio do gamemode, abaixo das incs )
public OnPlayerConnect(playerid){ 
     new 
f// var local ( dentro de callbacks )
     
return 1;

Seu problema й isso, nгo envolvendo talvez a callback citada como exemplo, mas й assim.
Pode ser tambйm declarado na include e no gamemode(ambos) como foi citado pelos membros acima.


Re: Como resolve esses warnings - willttoonn - 24.10.2015

Quais includes vocк possui? poste a lista aqui.


Re: Como resolve esses warnings - CZ - 24.10.2015

so troca o nome ja existe uma variavel com esse nome ai


Re: Como resolve esses warnings - iFaLLeN - 01.11.2015

Quote:
Originally Posted by willttoonn
Посмотреть сообщение
Quais includes vocк possui? poste a lista aqui.
Код:
#include	< a_samp >
#include    < a_http >
#include 	< streamer >
#include 	< foreach >
#include 	< dof2 >
#include 	< mSelection >
#include 	< system_tunning >
#include 	< VBan >
#include 	< SInclude >
#include    < SVStream >
#include    < sscanf2 >
Esses.


Re: Como resolve esses warnings - iFaLLeN - 01.11.2015

Ainda não consegui resolver esses warnings


Alguem sabe o que pode ser??