View Single Post
  #3  
Old 07-20-2011, 08:42 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Let's see...

hideimgs usage:

hideimg(start_index, end_index); - Hides images with ID range specified. (Inclusive)

I.e:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showimg(200"block.png"3030);
  
showimg(201"block.png"3030);
  
showimg(202"block.png"3030);
  
showimg(203"block.png"3030);
  
hideimgs(200204); // Hides above blocks.

You can just do:

hideimgs(200, 1000);

To hide all your images. The way your script is setup right now you're also drawing over existing image indexes. I.e:

a = 0
200 + a = 200
201 + a = 201

a = 1
200 + a = 201 (Overlapping here)
201 + a = 202


You can replace (GS1 Way):

PHP Code:
for( 0playerscounta++ ) { 
    if ( 
players[a].guild in this.staff_list ) { 
With (GS2/Object-oriented Way):

PHP Code:
temp.0;
for (
temp.plplayers) {
  if (
temp.pl.guild in this.staff_list) {
    
  }
  
temp.+= 3;

__________________
Quote:
Reply With Quote