SA-MP Forums Archive
How can I fix this warning? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can I fix this warning? (/showthread.php?tid=248359)



How can I fix this warning? - robintjeh - 13.04.2011

Hi,

I get alot of these warnings:
pawn Код:
warning 219: local variable "x" shadows a variable at a preceding level
How can I fix them? Thanks.


Re: How can I fix this warning? - Stigg - 13.04.2011

Quote:
Originally Posted by robintjeh
Посмотреть сообщение
Hi,

I get alot of these warnings:
pawn Код:
warning 219: local variable "x" shadows a variable at a preceding level
How can I fix them? Thanks.
It means you have defined 'x' twice.
Change 'x' to 'x2' ect...
Or make it global.


Re: How can I fix this warning? - Ironboy500[TW] - 13.04.2011

You probably have 2 same "new x;" in your script.