Thread: Custom Qmenu
View Single Post
  #8  
Old 09-01-2006, 08:39 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Oops, I just see I made a fault;
PHP Code:
this.wlist.clear();
temp.disabled = { "-", "+"};
for ( 
i: player.weapons) {
  for ( 
j: temp.disabled) {
    if ( !
i.name.starts( j))
      
this.wlist.add( { i.name, i.image});
  }
}

for ( 
i = 0; i < this.wlist.size(); i ++) {
  
with ( findImg( 200 + i)) {
    
image = thiso.wlist[ i][ 1];
    
x = start x + ( space_between_items_horizontal + 32 * ( i % ammount_of_items_horizontal));
    
y = start y + ( space_between_items_vertical + 32 * int( i / ammount_of_items_horizontal));
    
layer = 4;
  }
} 
What was wrong? I did temp.wlist, which isn't realy wrong, to make a list.. but it couldn't load within the with ( findImg( 200 + i)) { // stuff } part. This is an update, that should work.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote