Adblock breaks this site

if, then, else

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

  1. strongman

    strongman Member

    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0
    if, then, else

    CAn anyone help me with if, then, else when scripting becuse whenever i script using that it dusnt work it gives an error

    so if anyones out there to help me out i wud be very thankful
     
  2. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    if, then, else

    if (Boolean = true) then

    What's the problem?
     
  3. strongman

    strongman Member

    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0
    if, then, else

    well this is the script 1 pprocedure of the script

    begin
    wait(100)
    if(FindColorTolerance(x , y, BettyColor, 252, 210, 765, 548, 10) then
    begin
    wait(50)
    movemousesmooth(x, y);
    wait(50)
    clickmouse(x, y, true);
    wait(2000)
    movemousesmooth(484, 653);
    wait(2000)
    clickmouse(484, 653, true);
    wait(2000)
    movemousesmooth(522, 612);
    wait(2000)
    clickmouse(522, 612, true);
    wait(2000)
    end else
    wait(5000)
    FindColorTolerance(x , y, BettyColor, 252, 210, 765, 548, 10)
    end;

    Line 48: [Error] (48:66): Close round expected in script C:\Program Files\SCAR 3.06\Scripts\Official Choaus and Deeath buyer.scar
     
  4. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    if, then, else

    if(FindColorTolerance(x , y, BettyColor, 252, 210, 765, 548, 10)) then

    Close round expected ---> You need just as many ( as ) or you will get an error.
     
< Really NEED help!! | Failed whem Compiling? :[ >


 
 
Adblock breaks this site