if, then, else

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

if, then, else
  1. Unread #1 - Sep 28, 2007 at 1:56 AM
  2. strongman
    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0

    strongman Member

    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
     
  3. Unread #2 - Sep 28, 2007 at 6:30 AM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    if, then, else

    if (Boolean = true) then

    What's the problem?
     
  5. Unread #3 - Sep 28, 2007 at 12:46 PM
  6. strongman
    Joined:
    Apr 9, 2007
    Posts:
    94
    Referrals:
    0
    Sythe Gold:
    0

    strongman Member

    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
     
  7. Unread #4 - Sep 28, 2007 at 3:05 PM
  8. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    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? :[ >

Users viewing this thread
1 guest


 
 
Adblock breaks this site