View Single Post
  #2  
Old 07-20-2011, 08:39 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
PHP Code:
    else {
      
//HP01
      
showtext( 202 + a, players[a].x - .325, player[a].y + 2.9, "Arial", "b", "HP:" SPC players[a].attr[4] );
      
changeimgcolors( [B]202[/B], 0, 0, 0, .4 );
      
changeimgzoom( [B]202[/B], 0.6 );
      
changeimgvis( [B]202[/B], 1 );
      
//HP02
      
showtext( 203 + a, players[a].x - .2, player[a].y + 2.9, "Arial", "b", "HP:" SPC players[a].attr[4] );
      
changeimgcolors( [B]203[/B], 1, .3, .3, .85 );
      
changeimgzoom([B] 203[/B], 0.6 );
      
changeimgvis( [B]203[/B], 1 );
    } 
You are missing something in the bold area- [look for ''[B]'' stuff ]

Also only update the attr[4] when needed- (if the players health changes...)
__________________
Reply With Quote