help me please
#1

This bug is showen to me can any one help me
pawn Код:
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\gtarlrp.pwn(37994) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\Mohamad\Desktop\San Andreas Roleplay\gamemodes\gtarlrp.pwn(38814) : warning 219: local variable "idx" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
in line 37994 and line below wrote:
pawn Код:
for(new idx = 0; idx< sizeof(DoorInfo); idx++) // Dynamic Doors < sizeof(
        {
            if(IsPlayerInRangeOfPoint(playerid, 2, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]))
            {
                if(DoorInfo[idx][dCInt])
                {
                    Pause(playerid);
                }
                SetPlayerInterior(playerid, DoorInfo[idx][dIInt]);
                SetPlayerVirtualWorld(playerid, DoorInfo[idx][dIVW]);
                SetPlayerFacingAngle(playerid, DoorInfo[idx][dIA]);
                SetCameraBehindPlayer(playerid);
                SetPlayerPos(playerid, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]);
                return 1;
            }
        }
in line 38814 and line below wrote:
pawn Код:
for(new idx=0; idx<MAX_DOORS; idx++) // Dynamic Doors
        {
            if(IsPlayerInRangeOfPoint(playerid, 2, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]) && GetPlayerVirtualWorld(playerid) == DoorInfo[idx][dIVW] && GetPlayerInterior(playerid) == DoorInfo[idx][dIInt])
            {
                if(DoorInfo[idx][dCExt])
                {
                    Pause(playerid);
                }
                SetPlayerInterior(playerid, DoorInfo[idx][dOInt]);
                SetPlayerVirtualWorld(playerid, DoorInfo[idx][dOVW]);
                SetPlayerFacingAngle(playerid, DoorInfo[idx][dOA]);
                SetCameraBehindPlayer(playerid);
                SetPlayerPos(playerid, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]);
            }
        }
Reply


Messages In This Thread
help me please - by Jack_Ryder - 27.04.2013, 14:58
Re: help me please - by Jack_Ryder - 27.04.2013, 15:04
Re: help me please - by Stanford - 27.04.2013, 15:07
Re: help me please - by PT - 27.04.2013, 15:11
Re: help me please - by Jack_Ryder - 27.04.2013, 15:12
Re: help me please - by PT - 27.04.2013, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)