20 Warnings
#1

I just don't understand what do these warnings mean

pawn Код:
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(3009) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(3009) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(3015) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(3015) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7062) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7062) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7083) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7083) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7103) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7103) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7109) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(7109) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15440) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15440) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15813) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15813) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15819) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(15819) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(30541) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\sunsetcity_roleplay\gamemodes\sunsetcity.pwn(30541) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


20 Warnings.
Reply
#2

Those warnings mean that the variables (doors, and lights) were already defined before.. So you can probably remove the line "new doors, lights;"
Reply
#3

That means that you've already defined these variables in any other part of your script! You can't have them twice with the same name! Change the name of "doors" and "lights" to another name, so that the original ones only will be there once!
Reply
#4

You defined them globally somewhere. You should make them local (create them where you need them, not outside of everything).
Reply
#5

Thanks everyone, got it now
Reply
#6

Glad I (we) could help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)