Results 1 to 3 of 3

Thread: Error

  1. #1
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Error

    Hey, welcome here. I am making a chicken killer and I get this error: "[Error] (17810:1): Identifier expected" that is all. I have NOT done the killing part in this script yet, just anti-randoms and declareplayers and that stuff. I know it is probably a stupid mistake, but can someone please help me with it? Thanks!

    -Harry


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  2. #2
    Join Date
    Oct 2006
    Location
    C:\Program Files\SCAR 2.03
    Posts
    1,194
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    begin  //Main Loop
      Setup;
      repeat
        repeat
          if not (loggedin) then break;
          MakeCompass('N')
            HighestAngle;
          repeat
            if not (loggedin) then break;
            AntiRandoms;
            Flag; //Umm... idk what it does... just have seen it a lot in other scripts...
            Proggy; //PRINTS PROGGY TO DEBUG WINDOW
          NextPlayer(True)
      until (False)
    end.

    You forgot to add two more "until"s but you really don't need the two repeats at the top so I just got rid of one for you. Also I don't suggest using until(false) where I put it, build in a failsafe of some sort so it doesn't loop forever.

    SCAR Code:
    begin  //Main Loop
      Setup;
      repeat{<-------1}
          if not (loggedin) then break;
          MakeCompass('N')
            HighestAngle;
          repeat{<-------2}
            if not (loggedin) then break;
            AntiRandoms;
            Flag; //Umm... idk what it does... just have seen it a lot in other scripts...
            Proggy; //PRINTS PROGGY TO DEBUG WINDOW
          until(false); {<-------2}
          NextPlayer(True)
      until (False){<-------1}
    end.

    Also "Flag" makes the script wait until it doesn't see a flag on the mini map.
    [FONT="Garamond"][SIZE="3"]
    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
    [/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]

  3. #3
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Thank you. +rep


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

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. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10:43 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
  •