Thread: Were do i add this rep++

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Were do i add this rep++ 
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Fixed it while ago lul
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  2. #2  
    Ash
    Guest
    Try adding a bracket at the top.

    so it looks like this.

    }
    if (stage == 1 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 515);
    cannonDelay = System.currentTimeMillis();
    stage = 2;
    }
    if (stage == 2 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 516);
    cannonDelay = System.currentTimeMillis();
    stage = 3;
    }
    if (stage == 3 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 517);
    cannonDelay = System.currentTimeMillis();
    stage = 4;
    }
    if (stage == 4 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 518);
    cannonDelay = System.currentTimeMillis();
    stage = 5;
    }
    if (stage == 5 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 519);
    cannonDelay = System.currentTimeMillis();
    stage = 6;
    }
    if (stage == 6 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 520);
    cannonDelay = System.currentTimeMillis();
    stage = 7;
    }
    if (stage == 7 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 521);
    cannonDelay = System.currentTimeMillis();
    stage = 8;
    }
    if (stage == 8 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 514);
    cannonDelay = System.currentTimeMillis();
    stage = 1;
    }
    }
    }
    if (stage == 1 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 515);
    cannonDelay = System.currentTimeMillis();
    stage = 2;
    }
    if (stage == 2 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 516);
    cannonDelay = System.currentTimeMillis();
    stage = 3;
    }
    if (stage == 3 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 517);
    cannonDelay = System.currentTimeMillis();
    stage = 4;
    }
    if (stage == 4 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 518);
    cannonDelay = System.currentTimeMillis();
    stage = 5;
    }
    if (stage == 5 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 519);
    cannonDelay = System.currentTimeMillis();
    stage = 6;
    }
    if (stage == 6 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 520);
    cannonDelay = System.currentTimeMillis();
    stage = 7;
    }
    if (stage == 7 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 521);
    cannonDelay = System.currentTimeMillis();
    stage = 8;
    }
    if (stage == 8 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 514);
    cannonDelay = System.currentTimeMillis();
    stage = 1;
    }
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    gia still dont work :{
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  4. #4  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    It's repeating alot of un-neccessary crap...try reducing it down to this:

    Code:
    if (stage == 1 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 515);
    cannonDelay = System.currentTimeMillis();
    stage = 2;
    }
    if (stage == 2 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 516);
    cannonDelay = System.currentTimeMillis();
    stage = 3;
    }
    if (stage == 3 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 517);
    cannonDelay = System.currentTimeMillis();
    stage = 4;
    }
    if (stage == 4 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 518);
    cannonDelay = System.currentTimeMillis();
    stage = 5;
    }
    if (stage == 5 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 519);
    cannonDelay = System.currentTimeMillis();
    stage = 6;
    }
    if (stage == 6 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 520);
    cannonDelay = System.currentTimeMillis();
    stage = 7;
    }
    if (stage == 7 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 521);
    cannonDelay = System.currentTimeMillis();
    stage = 8;
    }
    if (stage == 8 && (System.currentTimeMillis() - cannonDelay > 250)) {
    sendFrame160(CannonX, CannonY, 10, 0, 514);
    cannonDelay = System.currentTimeMillis();
    stage = 1;
    }
    Then add it where the tutorial said to put it.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Keep getting a error saying unexpected ; and saying ilegal start
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  6. #6  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    Yep... a super coder.. fail.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    This is what you get when you do tutorials.



    Reply With Quote  
     

  8. #8  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    lolled
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Mar 2009
    Age
    31
    Posts
    1,008
    Thanks given
    32
    Thanks received
    7
    Rep Power
    111
    If you can't Read English then i'd stick to leeching.
    Reply With Quote  
     

  10. #10  
    Ash
    Guest
    Dont spam.

    Please show me the errors.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •