Errors Preceding Level
#1

When i put this Script
pawn Код:
forward WireIgnition(playerid, vehicleid);
public WireIgnition(playerid, vehicleid)
{
    new rand = random(7), string[128];
    PlayerInfo[playerid][pJackingCar] =0;
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
        if(rand == 1 || rand == 2) // Successful
        {
            format(string, sizeof(string), "* %s successfully wires the ignition, turning the engine on.", GetPlayerNameEx(playerid));
            ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

            new engine,lights,alarm,doors,bonnet,boot,objective;
            GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
            SetTimerEx("DisableVehicleAlarm", 30000, 0, "d",  vehicleid);

            SendClientMessageEx(playerid, COLOR_WHITE, "Vehicle engine starting, please wait...");
            SetTimerEx("SetVehicleEngine", 1000, 0, "dd",  vehicleid, playerid);
        }
        else
        {
            format(string, sizeof(string), "* %s fails to wire the ignition.", GetPlayerNameEx(playerid));
            ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
           
            new engine,lights,alarm,doors,bonnet,boot,objective;
            GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
            SetTimerEx("DisableVehicleAlarm", 30000, 0, "d",  vehicleid);
        }
    }
    else
    {
        format(string, sizeof(string), "* %s fails to wire the ignition.", GetPlayerNameEx(playerid));
        ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
        SetTimerEx("DisableVehicleAlarm", 30000, 0, "d",  vehicleid);
    }
}
This Warnings Comes, i need to fix this please help,
Код:
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "alarm" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "bonnet" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "boot" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36239) : warning 219: local variable "objective" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "alarm" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "bonnet" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "boot" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36252) : warning 219: local variable "objective" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "engine" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "alarm" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "bonnet" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "boot" shadows a variable at a preceding level
C:\Users\pc\Desktop\Servers\SGRP\gamemodes\VGRP.pwn(36263) : warning 219: local variable "objective" shadows a variable at a preceding level
Reply


Messages In This Thread
Errors Preceding Level - by cedizon - 29.05.2014, 06:17
Re: Errors Preceding Level - by Adityz - 29.05.2014, 06:23
Re: Errors Preceding Level - by cedizon - 29.05.2014, 06:29
Re: Errors Preceding Level - by BroZeus - 29.05.2014, 06:31
Re: Errors Preceding Level - by cedizon - 29.05.2014, 06:35
Re: Errors Preceding Level - by NaClchemistryK - 29.05.2014, 06:39
Re: Errors Preceding Level - by BroZeus - 29.05.2014, 06:49

Forum Jump:


Users browsing this thread: 2 Guest(s)