Code:case 89223: //Deposit Inventory for(int i = 0; i < c.playerItems.length; i++) { c.getItems().bankItem(c.playerItems[i], i,c.playerItemsN[i]); } break;
|
Whenever i use deposit all items into bank button i get a lagg spike is there any way i could make that there wont be lagg?
this is my actionbutton code if it helps ..
i'm using PI 317Code:case 89223: //Deposit Inventory for(int itemID = 0; itemID < 101; itemID++) { for(int invSlot = 0; invSlot < 28; invSlot++) { c.getItems().bankItem(itemID, invSlot, 2147000000); } }
lol look at how many times your looping it why do you think it lags.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |