Jump to content


I need this script to Loop Restart [URGENT]


  • Please log in to reply
1 reply to this topic

#1 Choc

Choc
  • Guests

Posted 15 July 2012 - 08:22 PM

Hi,

I need the following script to Restart once the last 'Tosend' has executed example:
[color=#FF0000]tosend=t/drop weapon{enter}[/color]
this line of the code, once it's executed i want the script to restart and then execute the first peice of code which is
[color=#FF0000]tosend=t/sellgun 104 colt45 %a_index%{enter}[/color]
and keep looping around & restarting, At the moment in game i press the button and it just Either Constantly Loops one line of code or the other, It doesn't restart itself to Execute one line after the other & back around, and so on.. etc etc.

Anyone can help me ASAP would be lovely. Thanks!

Script:

settimer, looping, 10000


looping:
XButton2::
loop 250
{
tosend=t/sellgun 104 colt45 %a_index%{enter}
tosend=t/drop weapon{enter}
Send %tosend%
Sleep 10000
}
return


#2 girlgamer

girlgamer
  • Moderators
  • 2039 posts

Posted 15 July 2012 - 08:58 PM

settimer, looping, 10000


looping:
XButton2::
loop 250
{
tosend=t/sellgun 104 colt45 %a_index%{enter}
Send %tosend%
tosend=t/drop weapon{enter}
Send %tosend%
Sleep 10000
}
return

Additionally, I have no clue what you're tying to accomplish here. You have a timer (which is itself a loop) on top of a manually activated hotkey loop. I'm surprised your computer doesn't simply explode. I know my brain did.