SpikeStrip.inc: warning
#1

Hello...
When i tryed to compile the gamemode, i have this error:

Код:
SpikeStrip.inc(27): warning 219:local variable "panels" shatdows a variable at a precedng level
SpikeStrip.inc(27): warning 219:local variable "doors" shatdows a variable at a precedng level
SpikeStrip.inc(27): warning 219:local variable "lights" shatdows a variable at a precedng level
SpikeStrip.inc(27): warning 219:local variable "tires" shatdows a variable at a precedng level

Includes:

Код:
#include <a_samp>
#include <a_npc>
#include <core>
#include <utils>
#include <float>
#include <time>
#include <file>
#include <JunkBuster>
#include <morphinc>
#include <streamer>
#include <foreach>
#include <Dini>
#include <string>
#include <SpikeStrip>
#include <G_ObjectsRot>
#include <GetVehicleColor>
Help please
Reply
#2

A) That's not an error.
B) You're re-defining your variables. Making them shatdows.
To fix this, you'll need to replace inside your script or the include, as you choose.
Variables into differnt names, for example:
pawn Код:
new _panels, _doors, _lights, _tires; // old panels, doors, lights, tires.
/* code ..*/ _panels; // old panels
/* code */ _doors; // old doors
/* code */ _lights; // old lights
/* code */ _tires; // old tires
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)