20 Warnings - 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: 20 Warnings (
/showthread.php?tid=328301)
20 Warnings -
Dripac - 24.03.2012
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.
Re: 20 Warnings -
JJB562 - 24.03.2012
Those warnings mean that the variables (doors, and lights) were already defined before.. So you can probably remove the line "new doors, lights;"
Re: 20 Warnings -
Twisted_Insane - 24.03.2012
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!
Re: 20 Warnings -
[ABK]Antonio - 24.03.2012
You defined them globally somewhere. You should make them local (create them where you need them, not outside of everything).
Re: 20 Warnings -
Dripac - 24.03.2012
Thanks everyone, got it now
Re: 20 Warnings -
Twisted_Insane - 24.03.2012
Glad I (we) could help!