Error doors,lights
#1

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
Reply
#2

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.
}
Reply
#3

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.
}
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)