SA-MP Forums Archive
warning 219: local variable "car" shadows a variable at a preceding level - 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)
+--- Thread: warning 219: local variable "car" shadows a variable at a preceding level (/showthread.php?tid=562175)



warning 219: local variable "car" shadows a variable at a preceding level - Supermaxultraswag - 07.02.2015

Код:
warning 219: local variable "car" shadows a variable at a preceding level
Код:
new car[MAX_PLAYERS][30];



Re: warning 219: local variable "car" shadows a variable at a preceding level - HazardouS - 07.02.2015

So change the name of one of them. I recommend changing the name of the local variable.


Re: warning 219: local variable "car" shadows a variable at a preceding level - CalvinC - 07.02.2015

This means you are declaring something twice, look for a global variable or another local variable in the same code, either rename one of them or delete one of them.