View Single Post
  #1  
Old 09-08-2007, 06:16 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Some Gui problems

Well, I'm setting up an Inventory on Maloria, and there's obviously an area there with the slots for the item icons. It's a 4x6 grid, basically, and there' up/down page buttons. So I have this function to show the items for the page:
PHP Code:
function loadPage() {
  
this.itemssize clientr.items.size()-((this.page-1)*24);
  
temp.base = {21853};
  
temp.1;
  
with (Inv) {
    for (
h=0h<6h++) {
      for (
w=0w<4w++) {
        
with (new GuiShowImgCtrl("ItemIcon_" temp.i)) {
          
resize(temp.base[0]+(32*w),temp.base[1]+(32*h),32,32);
          
image "block.png";
          
Inv.addControl(this);
        }
        
player.chat h;
        if (
temp.<= this.itemssize)
          
temp.i++;
        else
          break;
      }
    }
  }

But, for whatever reason, when it gets the point where it's setting player.chat to h, h equals 5...that means it seems to be waiting until the end of the first for loop before going on the the next for loop. o.0

Help. :<
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote