|
kewlkidbrent Beginner
Joined: 21 Mar 2009 Posts: 12
|
Posted: Mon Feb 01, 2010 2:46 pm
I am Having trouble with my #IF alias |
ok what I want is simple but it keeps entering the script instead of what I want
#if (@stance=0) {scs}
mnk @target
ucp @target
ucp @target
all I want it to read is if the variable Stance is 0 enter scs |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 01, 2010 7:11 pm |
if you are seeing code flash by on your script, this generally means you have a syntax error somewhere in your scripts--most likely a missing {} or (). It's not in the above code.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
bebamedo Novice
Joined: 02 Aug 2006 Posts: 32
|
Posted: Mon Feb 01, 2010 7:21 pm |
if I am not mistaken the first line needs to be written with empty spaces before and after "="sign
#if (@stance = 0) {scs} |
|
|
|
kewlkidbrent Beginner
Joined: 21 Mar 2009 Posts: 12
|
Posted: Mon Feb 01, 2010 9:33 pm |
MattLofton wrote: |
if you are seeing code flash by on your script, this generally means you have a syntax error somewhere in your scripts--most likely a missing {} or (). It's not in the above code. |
that's the problem I can't find whats wrong the code #if (@stance=0) {scs} doesnt work correctly it enters that into the prompt instead of just entering scs or nothing at all. and the space imbetween doesn't fix it |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 01, 2010 9:45 pm |
I already evaluated your code. There's absolutely nothing wrong with it. Without more info, we can't help you.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
kewlkidbrent Beginner
Joined: 21 Mar 2009 Posts: 12
|
Posted: Mon Feb 01, 2010 9:46 pm |
this is what happens when I hit the alias and am in stance
#if (Scorpion=0) {scs}
mnk thief
ucp thief
ucp thief
and when I am not in stance it says
#if (0=0) {scs} |
|
|
|
|
|