CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    MStimer not working (Help)

    Scripts
    5
    7
    287
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hookie last edited by

      for (b = 54; b <= 90; b++) {
      				 
      					if (timer4.hasTimePassed(1000)) {
      				Chat.print("Yes")
      						timer4.reset()
      				
      				}
      				
      			}
      

      timer4 = new MSTimer();

      only prints it once and stops, timer works in my other scripts, but not in this situation

      A skiddermaster412 2 Replies Last reply Reply Quote 0
      • A
        Aftery @Hookie last edited by

        @hookie was gonna say something but i have eye cancer now

        H 1 Reply Last reply Reply Quote 0
        • H
          Hookie @Aftery last edited by Hookie

          @aftery chill i'm new, have some respect we've all been here

          A 1 Reply Last reply Reply Quote 0
          • A
            Aftery @Hookie last edited by

            @hookie sorry as a matter of fact i've never pulled off something that spectacular

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              it's not gonna work man bcz of the loop

              1 Reply Last reply Reply Quote 1
              • M
                mems Moderator last edited by

                @hookie said in MStimer not working (Help):

                for (b = 54; b <= 90; b++) {

                What are you trying to do with this loop ?

                1 Reply Last reply Reply Quote 0
                • skiddermaster412
                  skiddermaster412 Banned @Hookie last edited by

                  @hookie invert da loop

                  if(timer4.hasTimePassed(5000)){
                  	for (var i = 0; i < 69; i++) {
                  		Chat.print(i)
                  	}
                  	timer4.reset();
                  }
                  
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  About
                  • Terms of Service
                  • Privacy Policy
                  • Status
                  • Contact Us
                  Downloads
                  • Releases
                  • Source code
                  • License
                  Docs
                  • Tutorials
                  • CustomHUD
                  • AutoSettings
                  • ScriptAPI
                  Community
                  • Forum
                  • Guilded
                  • YouTube
                  • Twitter
                  • D.Tube