What does this mean? - 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: What does this mean? (
/showthread.php?tid=100210)
What does this mean? -
Mike Garber - 03.10.2009
Код:
(4320) : warning 219: local variable "playername" shadows a variable at a preceding level
4320=
Код:
new playername[MAX_PLAYER_NAME];
What does It mean, and how do I fix it?
If I remove that line (or comment it out), the error disappear, but
I think the script needs that, doesn't it?
Re: What does this mean? -
[HKS]dlegend - 03.10.2009
its means its defined twice
Re: What does this mean? -
SpiderPork - 03.10.2009
Just delete it.
Re: What does this mean? -
Correlli - 03.10.2009
Don't delete it, it's probably used in your script. Just change the name of the variable and all releated things to it.
Re: What does this mean? -
SpiderPork - 03.10.2009
Quote:
Originally Posted by Don Correlli
Don't delete it, it's probably used in your script. Just change the name of the variable and all releated things to it.
|
As you can see, he gets no errors or warnings and I doubt the script functionality will change:
Quote:
Originally Posted by mavtias
If I remove that line (or comment it out), the error disappear
|
Re: What does this mean? -
MadeMan - 03.10.2009
Yes, if he already has it defined then he should have no problems when deleting that one.
Re: What does this mean? -
[HKS]dlegend - 03.10.2009
i had this problem if some of your script stops working define it were it is need as a new