SA-MP Forums Archive
Help Variable "Name" No Effect !!! - 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: Help Variable "Name" No Effect !!! (/showthread.php?tid=540295)



Help Variable "Name" No Effect !!! - FloxX - 03.10.2014

Excuse me Scripter

Why for my warning
Код:
D:\srv\gamemodes\bare.pwn(1066) : warning 219: local variable "Name" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
My Line 1066
Код:
new Name[126];
Thanks before

Sorry for my bad english


Re: Help Variable "Name" No Effect !!! - XGreen - 03.10.2014

Nevermind it then, its just a warning.


or show us the full code.


Re: Help Variable "Name" No Effect !!! - IceCube! - 03.10.2014

You have a Global Variable with the name of "Name", this is a variable which isn't stored inside a callback. You have two options.

1: Optimise your code, do this by removing the Global Variable "Name", and fixing errors that creates.
2: Rename the Local Variable "Name", the one you have posted.