how can i fix it - 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 it (
/showthread.php?tid=103016)
how can i fix it -
xCoder - 18.10.2009
warning 219: local variable "string" shadows a variable at a preceding level
Re: how can i fix it -
Correlli - 18.10.2009
Rename one of the variables. You have one global variable which has the same name as the local one.
Re: how can i fix it -
Tigerbeast11 - 18.10.2009
You could do that, but, there is no point, its just a warning, you could simply ignore it!
Re: how can i fix it -
Correlli - 18.10.2009
Quote:
Originally Posted by Tigerbeast11
You could do that, but, there is no point, its just a warning, you could simply ignore it!
|
No, don't ignore it. Ignoring it would make it as "no point".
Re: how can i fix it -
Hiitch - 18.10.2009
Just do what Don Corelli said
If you have something like string[64];
and you made a command with something like
string[64]; again, just remove this one, and the warning will/should go away.
To the other post that said to ignore it, when you ignore it, thats wasting memory.