PDA

View Full Version : How to fix this warning


Jizz
25/09/2013, 06:09 AM
//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));
}
}

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

Anyone?

JamesH
25/09/2013, 06:38 AM
Check the other thread you've made.