Results 1 to 10 of 10

Thread: Script error "=" expected.

  1. #1
    Join Date
    Feb 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default Script error "=" expected.

    [Error] C:\Users\User\Downloads\************.simba(8:5): is ('=') expected at line 7

    x, aInteger, run, invCounter, runIsOn, thaTime, TreeColor3, y, z, logs, level, knife, TreeColor, TreeColors: integer;

    is there anything wrong in this, and how do i fix it?, im really stuck =/

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    You're declaring variables there, but I think the compiler thinks you're trying to declare constants or something. Before the line you posted should be "var."

  3. #3
    Join Date
    Feb 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    ok here's my lines 5,6,7 :
    const
    var
    x, aInteger, run, invCounter, runIsOn, thaTime, TreeColor3, y, z, logs, level, knife, TreeColor, TreeColors: integer;

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by demiraca View Post
    ok here's my lines 5,6,7 :
    Take out const

  5. #5
    Join Date
    Feb 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    hanks RJJ95, now im stuck ont this
    Function IsCutting:
    var.
    PBox: TBox;
    Begin
    Clues are helpful since i want to learn

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by demiraca View Post
    hanks RJJ95, now im stuck ont this

    Clues are helpful since i want to learn
    Well he has posted his script without errors but I'll tell you what you did wrong

    Simba Code:
    Function IsCutting:
    var.
    PBox: TBox;
    Begin

    var. needs to just be var

  7. #7
    Join Date
    Feb 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    Well he has posted his script without errors but I'll tell you what you did wrong

    Simba Code:
    Function IsCutting:
    var.
    PBox: TBox;
    Begin

    var. needs to just be var
    I know i removed it but i still got same error:
    [Error] C:\Users\User\Downloads\CutterShafter[DONE].simba(62:2): Identifier expected at line 61
    But its fixed now since i got a free anti-leech copy version, thanks !! learned quite a bit

Thread Information

Users Browsing this Thread

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

Posting Permissions

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