SA-MP Forums Archive
Error doors,lights - 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: Error doors,lights (/showthread.php?tid=267613)



Error doors,lights - kingchandio - 09.07.2011

Sir im tired of this error cant find solution help me


pawn Код:
D:\Games\editing\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
D:\Games\editing\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase



Re: Error doors,lights - PrawkC - 09.07.2011

That means that you've defined doors and lights globally, then tried to define them inside a function.

pawn Код:
new number; // This would be defined globally
public fail()
{
new number; //So you could fix it by removing the global one, or renaming this.
}



Re: Error doors,lights - kingchandio - 09.07.2011

So now where to put this code sir?
pawn Код:
new number; // This would be defined globally
public fail()
{
new number; //So you could fix it by removing the global one, or renaming this.
}



Re: Error doors,lights - Vince - 09.07.2011

Is that a joke? It's just an example. I can't really explain it better than PrawkC already did.


Re: Error doors,lights - Roko_foko - 09.07.2011

Quote:
Originally Posted by kingchandio
Посмотреть сообщение
Sir im tired of this error cant find solution help me


pawn Код:
D:\Games\editing\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
D:\Games\editing\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Just delete "new doors,lights" from line 27