Results 1 to 15 of 15

Thread: whats wrong with this script?

  1. #1
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default whats wrong with this script?

    whats wrong with this im trying to make something but i cant get pass this error oh and im very new so please dont flame me....thank you guys so much.

    SCAR Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;
    Begin
    wait(3000);
    repeat
    clickmouse (361,258,true);
    end
    end.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    repeat needs until, change the first end to

    until (isfkeydown(12));


    that will stop repeating when you press f12


    Get drigers tutorial.exe, it explains the commands well, link is section 1 of my FAQ, link to FAQ in sig

  3. #3
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also another small problem is you have an extra END, aswell you need an extra identifyer here's a fixed version:

    SCAR Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;
    Begin
    wait(3000);
    repeat
    clickmouse(361,258,true);
    Until(false);
    end.

    It will WAIT and CLICKMOUSE forever. But you can change that.

  4. #4
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey guys i really apreciate your guys help It solved my Problem Now i can continue Exploreing the world of scripts thankyou All oh and how can i change how fast it clicks cause its clicking way way to fast it freeze my screen it clicks so fast.

  5. #5
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Heres my version....this shows you how to make it adjustable to how many time you want it to repeat and it should slow dont clicking

    SCAR Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;

    var
    click : integer;

    const
    times = 3;

    Begin
    wait(3000);
    repeat
    clickmouse(361,258,true);
    Wait(1500);
    click:= click + 1;
    Until(time = click);
    end.
    STOP PM'ING ME

  6. #6
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thankyou , ive only ben scripting foor 2 days this is my 2ed day but im learning alot and it's fun learning

  7. #7
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    lol its addicting isnt it? like once you start its hard to stop
    STOP PM'ING ME

  8. #8
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hobbit View Post
    Heres my version....this shows you how to make it adjustable to how many time you want it to repeat and it should slow dont clicking

    SCAR Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;

    var
    click : integer;

    const
    times = 3;

    Begin
    wait(3000);
    repeat
    clickmouse(361,258,true);
    Wait(1500);
    click:= click + 1;
    Until(time = click);
    end.
    Don't copy paste, it's not going to work... he spelled something wrong
    it has to be this:

    Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;
     
    var
    click : integer;
     
    const
    times = 3; // Here there is 'times'
     
    Begin
    wait(3000);
    repeat
    clickmouse(361,258,true);
    Wait(1500);
    click:= click + 1;
    Until(times = click);// Here there was 'time' :) that's the mistake
    end.

  9. #9
    Join Date
    Jan 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol Yeah It's So addicting....ive only made a autologin , and autotalker but im exploreing other ways to make like powercutters and all that stuff

  10. #10
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    ok taht's nice! look at the powerchopper i made in the SRL free scripts section, maybe it can be helpfull, but...

    DO NOT COPY PASTE, IT'S FOR HELPING, NOT COPYING!

  11. #11
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,610
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Um, never use clickmouse. That will get you banned.

    Accept that the waters around you have grown.

  12. #12
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I doubt this is for RS.

  13. #13
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    lol it isnt
    STOP PM'ING ME

  14. #14
    Join Date
    Jan 2007
    Posts
    448
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    well on my second day of scripting i made a power cutter :P *cough* anyways im always happy to help new scripters (well im still a new scripter since this is like my second week but w/e ) so just remember that loops such as

    repeat... dont stop with 'end's they stop with
    repeat
    ...
    ..
    ..
    until(...)
    for a non stop loop you wuld just put
    repeat
    ..
    ..
    ..
    until(false)
    get it?

  15. #15
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Quote Originally Posted by t3hl33tn00b View Post
    well on my second day of scripting i made a power cutter :P *cough* anyways im always happy to help new scripters (well im still a new scripter since this is like my second week but w/e ) so just remember that loops such as

    repeat... dont stop with 'end's they stop with
    repeat
    ...
    ..
    ..
    until(...)
    for a non stop loop you wuld just put
    repeat
    ..
    ..
    ..
    until(false)
    get it?
    didnt you read the scar rules? your not supposed to use infinite loops!
    --------------------------------------------------------------------------------------------------------
    Quote Originally Posted by the scar noob View Post
    Don't copy paste, it's not going to work... he spelled something wrong
    it has to be this:

    Code:
    //**************************************//
    //******Pimp Justin 3erd script Testing*//
    //*******woooooooooooot*******************//
    //****************************************//
    program Testing;
     
    var
    click : integer;
     
    const
    times = 3; // Here there is 'times'
     
    Begin
    wait(3000);
    repeat
    clickmouse(361,258,true);
    Wait(1500);
    click:= click + 1;
    Until(times = click);// Here there was 'time' :) that's the mistake
    end.

    yah yah i was doing it fast ....if i ran it myself i would have foudn eventually......
    STOP PM'ING ME

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. whats wrong with my script !?!?!?!!?
    By stampede10343 in forum OSR Help
    Replies: 7
    Last Post: 02-25-2008, 02:37 AM
  2. whats wrong with this script
    By psychojamesd in forum OSR Help
    Replies: 3
    Last Post: 08-02-2007, 01:59 AM
  3. Script, whats wrong
    By Camaro' in forum OSR Help
    Replies: 10
    Last Post: 06-01-2007, 01:15 AM
  4. Whats wrong in my script?
    By Intef i i i in forum OSR Help
    Replies: 2
    Last Post: 04-10-2007, 03:29 PM
  5. Replies: 7
    Last Post: 11-26-2006, 03:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •