Results 1 to 6 of 6
  1. #1
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1

    How to stop instant looping a code after 30 sec

    I use for (; "fucking smile" to instant loop a code, how do i make it stop after 30 sec?
    Last edited by GoDZeN; 05-24-2011 at 06:33 AM.

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    153
    My Mood
    Amazed
    Quote Originally Posted by GoDZeN View Post
    I use for (; "fucking smile" to instant loop a code, how do i make it stop after 30 sec?
    Code:
    for(i=0;i>30;i++)
    {
    //OMA goes here
    wait 1;
    }
    Something like that,

  3. #3
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Yamato View Post
    Code:
    for(i=0;i>30;i++)
    {
    //OMA goes here
    wait 1;
    }
    Something like that,

    That or

    Code:
    for(;;)
    {
    wait 0.1337;
    if(level.OMA == level.Yamato)
    {
    break;
    }
    }

  4. The Following User Says Thank You to EpicPlayer For This Useful Post:

    Yamato (05-24-2011)

  5. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,681
    Reputation
    905
    Thanks
    18,777
    My Mood
    Angelic
    Quote Originally Posted by EpicPlayer View Post
    That or

    Code:
    for(;;)
    {
    wait 0.1337;
    if(level.OMA == level.Yamato)
    {
    break;
    }
    }
    or....

    Loop()
    {
    self endon("death");
    self endon("disconnect");
    for(;
    {
    //Action here
    wait 30;
    break;

    }
    }
    You can also do:

    Loop()
    {
    self endon("death");
    self endon("disconnect");
    self endon("done");
    for(;
    {
    //Action here
    wait 30;
    self notify("done");

    }
    }
    Just to how that there is more ways.
    not to say that the others dosen't work....
    Just to show

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #5
    Threadstarter
    Advanced Member
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1
    Thanks guys

  7. #6
    Dead Bones Brook's Avatar
    Join Date
    Sep 2008
    Gender
    female
    Location
    On that seat right over there.
    Posts
    8,328
    Reputation
    858
    Thanks
    1,533
    My Mood
    Daring
    No problem man.

  8. The Following User Says Thank You to Dead Bones Brook For This Useful Post:

    EpicPlayer (05-24-2011)