This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
var switch=0; function useItem(x,y,z,itemId,blockId) { if(blockId==49) { switch=1; } else if(switch==1) { addItemInventory(10,2); } }
var switch=0;
function useItem(x,y,z,itemId,blockId,side)
{
if(blockId==49)
{
switch=1;
}
if(switch==1)
{
addItemInventory(10, 2);
}
}
You forgot to use the "else".
var switch=0; function useItem(x,y,z,itemId,blockId) { if(blockId==49) { switch=1; } else if(switch==1) { addItemInventory(10,2); } }http://www.twitter.com/AuthenticPixel
Now i've tested and it's working
Here:
var switch=0; function useItem(x,y,z,itemId,blockId) { if(blockId==49) { switch=1; } else if(switch==1) { addItemInventory(10,2); } }Rename the var "switch" to another, it is difficult to explain why, but change it and will work.
http://www.twitter.com/AuthenticPixel