Results 1 to 6 of 6

Thread: script error?

  1. #1
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default script error?

    hey buddies
    jsut got this REALLY small problem with a wc script:

    Line 240: [Error] (15886:1): Semicolon (';') expected in script C:\Program Files\SCAR 3.15\Scripts\[SRL]PowerChopper.scar

    im guessing its missing a semicolon on line 40?
    heres a small part of the code:
    238 y := y - random(2)
    240 if(x < 0) then
    241 x := 0;

    help please lol thanks
    ~ The One And Only ~

  2. #2
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    y := y - random(2);
    if(x < 0) then
      x := 0;
    btw, if there are more lines after the "if", and they are still included within that condition, you need a begin after the "if", just to cover up maybe future problems ^^
    There is nothing right in my left brain and there is nothing left in my right brain.

  3. #3
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    now i mgetting this:
    Line 428: [Error] (16074:1): Unknown identifier 'RunBack' in script C:\Program Files\SCAR 3.15\Scripts\[SRL]PowerChopper.scar

    :/
    this is line 248:
    RunBack;
    ~ The One And Only ~

  4. #4
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what script are you using? well, it doesn't really matter, because I can tell you without knowing, that script is way outdated, since rev 14 or so. The semicolon rule has been hardened 8that's why the first error occured), and many other things were exchanged, for example:
    -Runback with RunAway
    -HighestAngle with SetAngle
    - many many many others...
    Go get/go make a new script, that's my advice, cause fixing an old script is a pain in the butt ^^
    There is nothing right in my left brain and there is nothing left in my right brain.

  5. #5
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i foudna new script but it says error type mismatch
    Players[0].Pin := 0000; //PinNumber

    i dont see anything wrong with it. mayb i ened a bank pin?
    ~ The One And Only ~

  6. #6
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Once again outdated: BankPin is a string, not integer, so just put apostrophe's around the 0000 so it becomes '0000' and hope it works as it probably won't
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 AM

Posting Permissions

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