(boolean = true)

Discussion in 'Scar/Simba Help' started by strongman, Sep 28, 2007.

(boolean = true)
  1. Unread #1 - Sep 28, 2007 at 8:52 PM
  2. strongman
    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0

    strongman Member

    (boolean = true)

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2 = true) then

    is this how you set it up if you want (for example tree) to be clicked when this color the color is green

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2 = false) then

    and this when the color is not green

    if thats the case im getting an error

    ine 57: [Error] (57:69): Type mismatch in script C:\Program Files\SCAR 3.06\Scripts\Official Choaus and Deeath buyer.scar
     
  3. Unread #2 - Sep 28, 2007 at 9:39 PM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    (boolean = true)

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2) = true)

    That will work, or:

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2))

    The = true is optional. This is the best if you want it to be true.

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2) = false) then

    Will work, or:

    if(not (findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2))) then

    Will be the best. If it does not result true or false for some reason.
     
  5. Unread #3 - Sep 28, 2007 at 10:06 PM
  6. strongman
    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0

    strongman Member

    (boolean = true)

    thank you :)
     
< small error? | if it cant do it again? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site