Results 1 to 16 of 16

Thread: Line 0: [Error] (0:1): Variable Expected in script

  1. #1
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Line 0: [Error] (0:1): Variable Expected in script

    Attachment 6596Yup The title 'Line 0: [Error] (0:1): Variable Expected in script C:\Documents and Settings\My Documents\TheSpinner1.0.scar' any help?
    Because Scar just likes to throw errors out left right and center


    -> THIS IS NOTHING TO DO WITH THE COMMENTS

  2. #2
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    All I added was this....
    SCAR Code:
    //*****************************<<< Script Setup >>>*******************************//
    const
      SpinWool          = True;              // Should It Spin Wool? (False For Flax)
      UseAntiban        = True;              // Use Anti-Ban?
      SRLUsername       = 'Cathering_';      // Your SRL Username (Not Filling It In Will Get You Banned From Using This Service!)
    //*********************************<<< If Needed >>>******************************//
    const//<---Added
      YourSRLStatsID    = ''; //Your SRL Stats ID. (If any)
      YourSRLStatsPassword   = ''; //Your SRL Stats Password. (If any)
    //********************************************************************************//

    //*****************************DO NOT EDIT!*******************************//
    const
      VersionNumber       = '1.0';      // Script Verison
    //************************************************************************//

    Reson I'm , guessing is because of this //...

    Hope this helps,
    ~Stupedspam

  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Nah it still dont work, Scar ignores comments so it should just contuiune as if they were not there, Omg it was going so well then i get these 'drive me crazy' errors.

  4. #4
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hate these kinds of errors. lemme see what i can do for you.

  5. #5
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    umm, i dont get that error when i compile...

  6. #6
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry about the other diagnose, but I think I found it this time... BanktoLumby; is screwed up...

    Hope this helps,
    ~Stupedspam

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    hmm ill try it on my other comp will proably tell me if its just my comp

    - Yeh , banktolumby is in its beta verison it looks really confusing , what but wat part?

  8. #8
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well when I noted it out it was Successfully Executed so look through there for variable problems like (LoopBrake <> True) How can you be greater or less than true or false?

    ~Stupedspam

  9. #9
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    <> means not equal to lol.
    And loop brake will be made true when it finishs

    This IS Obbyiusly on my computer only im going to restore it tomarrow.

  10. #10
    Join Date
    Nov 2006
    Location
    In an Amish Paradise
    Posts
    729
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't know what the problem is... I hope you figure it out and I learned some stuff form your script

    ~Stupedspam

  11. #11
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by cathering_ View Post
    <> means not equal to lol.
    And loop brake will be made true when it finishs

    This IS Obbyiusly on my computer only im going to restore it tomarrow.
    i got ur error too

    just comment out whole procedures 1 at a time till it goes away
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  12. #12
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Line 739
    SCAR Code:
    if(FindColor(x-10, y-10, FindLadderColor, 581, 71, 662, 136)) then //can't have x-10 or y-10
    //must be a direct variable =]]

    and also line 742
    SCAR Code:
    MouseFlag(x, y-, 3, 3); //the dash <-

    Should compile after that

  13. #13
    Join Date
    Aug 2007
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    line 742,

    change it to
    Code:
    MouseFlag(x, -y, 3, 3);
    Negative sign are always before the variable, not after.

  14. #14
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Derek- View Post
    Line 739
    SCAR Code:
    if(FindColor(x-10, y-10, FindLadderColor, 581, 71, 662, 136)) then //can't have x-10 or y-10
    //must be a direct variable =]]

    and also line 742
    SCAR Code:
    MouseFlag(x, y-, 3, 3); //the dash <-

    Should compile after that

    OMG, THANK YOU!!!!

  15. #15
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    And also remember, this error is not always about that, usually for me its

    "Until(TimeFromMark(Mark));" I forgot the < or > X

    Or " var I;"

  16. #16
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This sometimes happens when you try to use a variable inside the parameters of a function...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-02-2008, 12:39 PM
  2. Replies: 2
    Last Post: 08-25-2008, 01:32 AM
  3. Replies: 10
    Last Post: 06-01-2008, 02:15 PM
  4. Replies: 3
    Last Post: 02-07-2008, 02:15 AM
  5. Line 1: [Error] Variable Expected in script
    By Fearlesssss in forum OSR Help
    Replies: 7
    Last Post: 05-26-2007, 10:12 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
  •