27.04.2013, 14:58
This bug is showen to me can any one help me
in line 37994 and line below wrote:
in line 38814 and line below wrote:
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.
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;
}
}
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]);
}
}