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
#2

Check the other thread you've made.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)