imnotatoaster Posted March 21, 2007 Share Posted March 21, 2007 I'm trying to fix a bot for WoW, but the problem is, when a specific dialogue box opens, telling me to input the type of battleground i am going into(AV,AB, or WSG) I get a syntax error, heres the source, can anybody help? if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then IniWrite("bgbot.ini", "Misc", "BattlegroundName", $whatbg) Else MsgBox(0, "ERROR!", "Syntax error. PvP Bawt will now exit.") Exit EndIf The error i get is: if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then if $whatbg = "AB" OR ^ERROR "If" statements must have a "Then" keyword. What I am trying to do is in the box i type AV, WSG or AB in, it will write my input to the .ini file, then go on to the next dialogue box, but i can't get past that error. Any help is appreciated, thanks. Link to comment Share on other sites More sharing options...
Marc Posted March 21, 2007 Share Posted March 21, 2007 Hi, try this: if ($whatbg = "AB") OR ($whatbg = "AV") OR ($whatbg = "WSG") Then best regards, Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
PantZ4 Posted March 21, 2007 Share Posted March 21, 2007 The syntax is like this: If ... Or ... Or ... Then Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now