Results 1 to 9 of 9

Thread: Wierd and hard to fix error, need help.

  1. #1
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default Wierd and hard to fix error, need help.

    when I try to compile the script I get this error.

    SCAR Code:
    Line 1: [Error] (1:1): Variable Expected in script


    Line 1 is
    SCAR Code:
    Program ScriptName;

    Thats it. How do I fix this error?

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, any chance you can post the script?

    I will fix the error if you do :P

  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can you post like the first 10-25 lines of script or something like that? maybe I can help.

  4. #4
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No lol its his Varrok Chopped to be paid for and i think it needs a dev bc i have gotten this like 100 times and I can't fix it

    Join the fastest growing merchanting clan on the the net!

  5. #5
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by pwnaz0r View Post
    No lol its his Varrok Chopped to be paid for and i think it needs a dev bc i have gotten this like 100 times and I can't fix it
    Thnx for the explanation but the first 10-100 lines is nothing but set up.

  6. #6
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Can we have the first 25 lines?

  7. #7
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Sure.


    SCAR Code:
    program ScriptName;

    {.include SRL/SRL.scar}
    {.include SRL/SRL/Extended/xMapWalk.Scar}
    {.include SRL/SRL/skill/WoodCutting.scar}
    {.include SRL/SRL/Extended/xBank.Scar}


    const
    Pub= 'On';// Sets Public Chat
    Pri= 'Off';//Sets Private Chat
    Tra= 'Off';//Sets Trade Chat
    RunDirection= 'N';//Run Direction If Fight Found
    Reply= True;//True if you want to autotalk to ppl who talk 2 u
    NewWorld = False;

  8. #8
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    No no, look at this
    SCAR Code:
    if(TimeFromMark(Mark)/1000)then
    things like that gives you error like that and it can be fixed with = or > or < or >= or <=
    SCAR Code:
    if(TimeFromMark(Mark)/1000>=4)then
    See the ">=" I bet you have forget to set value to your variable....

    Someone else had the same problem: http://www.srl-forums.com/forum/vari...-t7038p2.html?

  9. #9
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Pentti View Post
    No no, look at this
    SCAR Code:
    if(TimeFromMark(Mark)/1000)then
    things like that gives you error like that and it can be fixed with = or > or < or >= or <=
    SCAR Code:
    if(TimeFromMark(Mark)/1000>=4)then
    See the ">=" I bet you have forget to set value to your variable....

    Someone else had the same problem: http://www.srl-forums.com/forum/vari...-t7038p2.html?
    I think i may have that I will look through the script. Thank You.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wierd error
    By Adamb_135 in forum OSR Help
    Replies: 9
    Last Post: 05-09-2007, 12:42 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
  •