| contiga |
09-01-2006 08:39 PM |
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.
|