View Single Post
  #8  
Old 06-16-2013, 11:02 PM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
khortez, please style your code before posting it. It's difficult for us to read your code if it's not styled properly. You should be indenting your code as you write it, but if you find that impossible, use Jer's GS2 Beautifier before you post. This is the third time in the past 3 days you've posted poorly-formatted code. It just makes it harder for us to help you (look at Chompy's first post above to see why).

Thanks.
i understand; im not sure what to tell you. ive tried doing what chompy said. furthermore i used fp4s site. twice to maybe 3 times. aside from the comments that i added in the code.. what you see is what the beautifier came out as. i'm not trying to make it harder. in fact i'm trying to make it as easy as possible so i can move onto the next thing.


i'll try it again however:


PHP Code:
function onPlayerChats() {
  if (
player.chat == ":gui") {
    
this.on = !this.on;

    if (
this.on) {
      new 
GuiBitmapButtonCtrl("Button_Test") {
        
Button_Test.visible true;
        
resize(20020600800);


        
normalbitmap "c_inventorytest6-13-2013.png";
        
mouseoverbitmap "c_inventorytest6-13-2013.png";
        
pressedbitmap "c_inventorytest6-13-2013.png";
        
bitmaprectangle = {
          
1001009092
        
}; //hasn't clipped the image at all -  
        
text "Press me!"//for me. am i doing something - 
        //wrong?  
      
}
    } else {
      
player.chat "Button off!";
      
Button_Test.visible false;
      
Button_Test.destroy();
    }
  } 
this is what the beautifier did with the comments added
Reply With Quote