01.10.2011, 20:31
Код:
C:\Users\GuitarsRockMe\Downloads\Compressed\serverh3h3\test.pwn(12095) : warning 219: local variable "ud" shadows a variable at a preceding level C:\Users\GuitarsRockMe\Downloads\Compressed\serverh3h3\test.pwn(12095) : warning 219: local variable "lr" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
Here are the lines:
pawn Код:
if(mapstarted[playerid] == 1)
{
new o,ud,lr;
GetPlayerKeys(playerid,o,ud,lr);
if(ud > 0)
{
mapY[playerid] = mapY[playerid] - 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
}
else if(ud < 0)
{
mapY[playerid] = mapY[playerid] + 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
return 1;
}
if(lr > 0)
{
mapX[playerid] = mapX[playerid] + 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
}
else if(lr < 0)
{
mapX[playerid] = mapX[playerid] - 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
return 1;
}
}