Jump to content
UBot Underground

Loop-Threads and changing variables


Recommended Posts

Hi everyone,  I was hoping someone could help me out here.

 

I have a set of defines/commands that I would like to be able to run in a loop and in new threads but I need it

to use a new set of variables for each loop.

 

so let's say I wanted to run this set of commands/defines 5 times and with 5 threads with each one using

different variables.

 

can anyone set me on the right track?

Link to post
Share on other sites

Hello Shane, 
 

set(#Username, "Testing1", "Global")
 

Use "Set" and change the "Global" to "Local". 

set(#Username, "Testing1", "Local")


Global will run threw all threads, while local... well it's set to only the thread being used thread. :)

Regards,
HaHaItsJake
 

Link to post
Share on other sites

Hello Shane, 

 

set(#Username, "Testing1", "Global")
 

Use "Set" and change the "Global" to "Local". 

set(#Username, "Testing1", "Local")

 

 

Global will run threw all threads, while local... well it's set to only the thread being used thread. :)

 

Regards,

HaHaItsJake

 

 

Exactly as he said with one small correction...variables are LOCAL to the define command where you use them, not thread.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...