Assigning local and global variables to the loop:
May 3rd 2005, 02:14 PM
spacehoggy
Sorry about that confusing last post,I did it during sience and my teacher saw me doing the post, and i accidently posted it. what i meant to say was, Is there any way to have 2 or more loop: commands in one script by assigning variables or whatever to them. cheers.
dang, so its impossible to have more than one loop in a script? that sucks.
Ehm?
If we're talking about the same thing, then a loop is like this?
loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}
I haven't checked but ehm yeh, I think it's possible to then have a second loop after that, so:
loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}
loopagain:
&twovar += 1;
wait(250);
if (&twovar > 50)
{
goto loopagain;
}
If we're talking about the same thing, then a loop is like this?
loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}
I haven't checked but ehm yeh, I think it's possible to then have a second loop after that, so:
loop:
&var += 1;
wait(250);
if (&var > 50)
{
goto loop;
}
loopagain:
&twovar += 1;
wait(250);
if (&twovar > 50)
{
goto loopagain;
}
don't see why it wouldn't be possible. in another note you can't have string variables in dinkc can you. Basically a local variable like
String myString = "hello";
Is this possible if not then lets hope its possible in windmere
String myString = "hello";
Is this possible if not then lets hope its possible in windmere
May 4th 2005, 05:43 AM
spacehoggy
Ahh cool, you just give the loop another name. cheers simeon.