[Help]warning lights
#1

Quote:

C:\Documents and Settings\poon\Desktop\samp03csvr_win32\gamemodes\g randlarc.pwn(11554) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Documents and Settings\poon\Desktop\samp03csvr_win32\gamemodes\g randlarc.pwn(11554) : warning 203: symbol is never used: "Doors"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

2 Warnings.
lights
Doors
Quote:

new lights,bonnet,boot,Doors,engine,alarm,doors,object ive;

Reply
#2

The errors are telling you the exact problems:

1. The variable "lights" is already created somewhere, most likely as a global variable. You can change the name of that one to something else

2. The variable "Doors" is not being used. I'm assuming because whatever action you created it for is already being done by the other variable you created, "doors". Since it is unused, you can delete it ("Doors" variable).
Reply
#3

Quote:

C:\Documents and Settings\poon\Desktop\samp03csvr_win32\gamemodes\g randlarc.pwn(11536) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

T_T
I have not changed.
-----------------
What changed?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)