issue with using 'and' statement
Posted: Sat Jan 15, 2011 10:56 pm
This is no doubt purely an issue with how I am trying to use it but I just can't seem to get the code to work.
This code sets player.Class2 == CLASS_SCOUT even though there is no class2 yet. So amu will only = 1 if second class is set to scout.
Next code always returns mpuser = 99, never makes it = 0
but the following code works perfectly
Only difference is the usage of 'and' and 'or'
This code sets player.Class2 == CLASS_SCOUT even though there is no class2 yet. So amu will only = 1 if second class is set to scout.
Code: Select all
if _charclass2answer == "2" then
_charclass2 = "_scout"
mpuser2 = "1"
amu = "1"
end
Code: Select all
if player.Class1 == CLASS_ROGUE and mpuser2 == "1" then mpuser = "0" else mpuser = "99" end
Code: Select all
if player.Class1 == CLASS_SCOUT or amu == "1" then buyarrows = "2" else buyarrows = "0" end