Results 1 to 6 of 6

Thread: Assignment expected in script

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default Assignment expected in script

    I get the error

    Code:
    Assignment expected in script
    from this line

    SCAR Code:
    TypeMsg1: = TypeMsg1+1;

    I've declared TypeMsg1 as a variable, and now I don't know what to do.

    Any help is appreciated.

    Thanks,
    R1ch4

    EDIT: Sorry about double post. Didn't notice. My PC went laggy, and obviously felt like making two threads.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  2. #2
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;

    var
    TypeMsg1,TypeMsg2:integer;

    begin
    TypeMsg2 := TypeMsg1+1;
    writeln(inttostr(typemsg2));
    end.

    Delete the spaced between the colon and the '=' sign. Also, I think you can't use two variables at once.


  3. #3
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Gah! Thank you so much! It fixed it! Woo! Now to sort out the rest of the errors...
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  4. #4
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    No problem
    Rep is always welcome


  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Meh, Rep +. Just because you've been helpful.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Ooh, thanks


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assignment expected in script
    By Rich in forum OSR Help
    Replies: 2
    Last Post: 07-26-2008, 05:03 PM
  2. Assignment expected in script
    By [S]paz in forum OSR Help
    Replies: 2
    Last Post: 01-06-2008, 12:51 PM
  3. Replies: 4
    Last Post: 11-16-2007, 03:13 PM
  4. Assignment expected in script [Error]
    By marneus901 in forum OSR Help
    Replies: 2
    Last Post: 03-25-2007, 05:09 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
  •