SA-MP Forums Archive
[Ajuda] Waning em include... - 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] Waning em include... (/showthread.php?tid=633248)



Waning em include... - ThiagoGamemodes - 28.04.2017

Olб, sempre que eu compilo minha Gamemode da 2 warnings em includes:
\include\YSI\..\YSI_Coding\y_timers/impl.inc(84) : warning 219: local variable "time" shadows a variable at a preceding level
\include\geolocation.inc(474) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level

oque isto pode ser?, se alguйm souber agradeзo...


Re: Waning em include... - MultiKill - 28.04.2017

https://*******/QA4Pra

Usando o ****** tradutor vocк tem uma ideia do que o aviso quer dizer.

Resumindo quer dizer que existe uma variбvel global com um nome e uma local com o mesmo nome.

Exemplo:

PHP код:
new time;

main(){
    new 
time;

O cуdigo acima irб dar este aviso.

Se quiser resolver isso terб que renomear a variбvel.


Re: Waning em include... - ThiagoGamemodes - 28.04.2017

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
https://*******/QA4Pra

Usando o ****** tradutor vocк tem uma ideia do que o aviso quer dizer.

Resumindo quer dizer que existe uma variбvel global com um nome e uma local com o mesmo nome.

Exemplo:

PHP код:
new time;
main(){
    new 
time;

O cуdigo acima irб dar este aviso.

Se quiser resolver isso terб que renomear a variбvel.
obg irei verificar.