How to fix this warning
#1

pawn Код:
//DRAG
forward Dragging(playerid, ID);
public Dragging(playerid, ID)
{
if(Dragged[playerid] != -1)
        {
            new ID = Dragged[playerid];
            new Float:dX, Float:dY, Float:dZ;
            GetPlayerPos(ID, dX, dY, dZ);
            SetPlayerPos(playerid, dX+1, dY, dZ);
            SetPlayerInterior(playerid, GetPlayerInterior(ID));
            SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(ID));
        }
}
Quote:

warning 219: local variable "ID" shadows a variable at a preceding level

Anyone?
Reply


Messages In This Thread
How to fix this warning - by Jizz - 25.09.2013, 06:09
Re: How to fix this warning - by JamesH - 25.09.2013, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)